-
Notifications
You must be signed in to change notification settings - Fork 465
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
States are rendered as attributes - HTML #244
Comments
I think this has to do with the browser treating it as html. Rainbow shouldn’t add anything itself. For HTML highlighting you have to use HTML entities. Try replacing |
@ccampbell Is there a reason you don't encourage this (make it more obvious) by using Have we worked on anything before? Your name/avatar looks a little familiar. |
If you call innerText is the html preserved ? would it not be better to just replace tags with |
Version 11 of Highlight.js logs an error to the console in this situation and purposely strips all HTML (instead of rewriting it and merging it back as version 10 did). This is dangerous and should only be done by those who for sure know they want this behavior - and if so it can be added back with a plugin and option to turn off the security warning. |
So here's the html I have added. For the disabled state, and checked state, it automatically adds the equal signs and quotations.
Is there a way to remove on for those states?
The text was updated successfully, but these errors were encountered: