Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML entities contained in an XML string are not decoded by the SvgXml component #2257

Open
hellonobug9 opened this issue Apr 11, 2024 · 0 comments

Comments

@hellonobug9
Copy link

This is the XML string I have which consist of two HTML entities in the tspan tag

Everything functions perfectly when I use this string in react-svgr.com; the entities are immediately decoded.

image

However, the text is presented in the encoded version when I use this string as an xml prop in the SvgXml component.

@hellonobug9 hellonobug9 changed the title SvgXml component doesn't decode HTML entities in a XML string HTML entities contained in an XML string are not decoded by the SvgXml component Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant