Skip to content

Conversation

@stokesman
Copy link
Contributor

To fix #3. I ran into the issue and this was the quickest fix I found. I'm not sure why but html-react-parser will mangle those attributes and this gets around with a little addition to the replace option.

I've not tested it extensively but works well for all the icons I've tried so far.

@ndiego
Copy link
Owner

ndiego commented Jan 18, 2022

Thanks for this @stokesman! I will test this week.

@ndiego
Copy link
Owner

ndiego commented Jan 23, 2022

This works great in my testing. Thanks for taking the time to submit a PR. Merging this now and this fix will be included in the next release coming out tomorrow. 🙌

@ndiego ndiego merged commit 41ff413 into ndiego:main Jan 23, 2022
@ndiego ndiego mentioned this pull request Jan 25, 2022
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

Successfully merging this pull request may close these issues.

Hyphens in SVG attributes are removed

2 participants