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

Avoid loss of hyphens and colons in attribute names #5

Merged
merged 1 commit into from
Jan 23, 2022

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