Skip to content

Instantly share code, notes, and snippets.

@uploadcare-user
Created March 30, 2018 14:33
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/9df3b01a2a337e6c82bbe86777560810 to your computer and use it in GitHub Desktop.
Save uploadcare-user/9df3b01a2a337e6c82bbe86777560810 to your computer and use it in GitHub Desktop.
Snippet, <safescript> in a template processor
{% safescript %}
var s = "surprise!</script><script>alert('whoops!')</script>";
{% endsafescript %}
{% safescript %}
var a = 'Consider this string: <!--';
var b = '<script>';
{% endsafescript %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment