Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Short snippet, explains how one can encounter the closing script tag in a JS literal
var s = "surprise!</script><script>alert('whoops!')</script>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.