-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Prevent parse of invalid html tags #124
Comments
Thanks for opening the issue @nicoleCamoro! The error you get when trying to render an invalid tag is expected (see fiddle).
So this leads to my follow-up question, which is are you able to use an HTML sanitization library? (I.e., I created a Repl.it that uses Let me know if this helps answer your question. |
Oh I'm sorry I missed that. Your answer definitely helps. Thanks! |
Expected Behavior
Parser should ignore invalid html "tags".
Actual Behavior
I receive this error in the console :
DOMException: Failed to execute 'createElement' on 'Document': The tag name provided ('[email protected]') is not a valid name.
Steps to Reproduce
I'm parsing an email body and one of it's contents has this format:
<an,[email protected]>
Environment
The text was updated successfully, but these errors were encountered: