Public domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
-
-
Save eligrey/1224209 to your computer and use it in GitHub Desktop.
use cached DOM elements to escape HTML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Option(c).innerHTML |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Option(c).innerHTML |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "escapeHTML", | |
"keywords": ["escape", "escaping", "HTML", "XSS"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This won't work in IE < 9