Created
May 26, 2015 13:09
-
-
Save lauriii/df2880756bd651c6aaea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set string = '<script>alert("xss")</script>' %} | |
{% trans %} | |
Escaped: {{ string }} | |
{% endtrans %} | |
{% trans %} | |
Pass-through: {{ string|passthrough }} | |
{% endtrans %} | |
{% trans %} | |
Placeholder: {{ string|placeholder }} | |
{% endtrans %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment