You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
🐛 Bug Report
Input a file containing Chinese(or Korean, Japanese, Cyrillic) ID and mapping URLs, output incorrect component.
To Reproduce
Type in the following SVG in the playground. https://react-svgr.com/playground/?svgo=false
In the output component, the IDs and URLs are wrongly escaped.
Expected behavior
If the ID should be escaped to
id="\u8DEF\u5F84"
, thefill
should beurl(#\\u8DEF\\u5F84)
. Or both the ID and the fill should not be escaoed.Possible fix
See babel/babel#4909 (comment)
Add the option
generatorOpts: { jsescOption: { minimal: true } }
tosvgr/packages/plugin-jsx/src/index.ts
Line 56 in 846cd20
The text was updated successfully, but these errors were encountered: