1
0
mirror of https://github.com/Luzifer/promcertcheck.git synced 2024-09-20 18:02:56 +00:00
promcertcheck/vendor/github.com/flosch/pongo2/template_tests/autoescape.tpl

10 lines
284 B
Smarty
Raw Normal View History

2015-09-04 14:27:44 +00:00
{{ "<script>alert('xss');</script>" }}
{% autoescape off %}
{{ "<script>alert('xss');</script>" }}
{% endautoescape %}
{% autoescape on %}
{{ "<script>alert('xss');</script>" }}
{% endautoescape %}
{% autoescape off %}
{{ "<script>alert('xss');</script>"|escape }}
{% endautoescape %}