Skip to content

Instantly share code, notes, and snippets.

@uploadcare-user
Created March 29, 2018 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uploadcare-user/0550a58aefe67d0b0d2059f0cae02741 to your computer and use it in GitHub Desktop.
Save uploadcare-user/0550a58aefe67d0b0d2059f0cae02741 to your computer and use it in GitHub Desktop.
Short snippet, explains how one can encounter the closing script tag in a JS literal
<script>
var s = "surprise!</script><script>alert('whoops!')</script>";
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment