-
-
Save morrisonlevi/353c8dd91bbe7092bfea to your computer and use it in GitHub Desktop.
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
let id = "trying to be nasty\"></p><script>alert('hello');<p"; | |
// no injection possible! Context-aware escaping! | |
let fragment = <<<HTMLFragment | |
<p id="``id``"></p> | |
<<<HTMLFragment; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment