-
-
Notifications
You must be signed in to change notification settings - Fork 135
Ability to pass options to htmlparser2 #34
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
Comments
That's a good point. If |
That's the only one I needed. htmlparser does have some other options though: https://github.com/fb55/htmlparser2/wiki/Parser-options |
For now, I will set My rationale for this is because |
Decode HTML entities by default in `htmlparser2` (#34)
In order to set set
decodeEntities
to true, for example.I think that the call to
htmlToDOM
on this line just needs to pass in a 2nd parameter with options: https://github.com/remarkablemark/html-react-parser/blob/master/index.js#L21The text was updated successfully, but these errors were encountered: