github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/flosch/pongo2.v3/template_tests/autoescape.tpl (about)

     1  {{ "<script>alert('xss');</script>" }}
     2  {% autoescape off %}
     3  {{ "<script>alert('xss');</script>" }}
     4  {% endautoescape %}
     5  {% autoescape on %}
     6  {{ "<script>alert('xss');</script>" }}
     7  {% endautoescape %}
     8  {% autoescape off %}
     9  {{ "<script>alert('xss');</script>"|escape }}
    10  {% endautoescape %}