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 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 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 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"] | |
} |
no need, i'll edit mine!
of course you'll get credit! i'll tweet it up too.
…On Sat, Sep 17, 2011 at 6:27 PM, Eli Grey ***@***.*** wrote:
I'd prefer to take the credit for it instead, since I thought of it.
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/1224209
This won't work in IE < 9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh it seems you're right, now that I've actually read the rules. I'll fork the 140byt.es thing and make a new submission.