We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f5d2ff commit 26fac73Copy full SHA for 26fac73
test/Fixtures/SimpleXssExample.test
@@ -0,0 +1,10 @@
1
+--TEST--
2
+Test a simple trans tag against XSS injection
3
+--TEMPLATE--
4
+{% trans %}<script>alert(1);</script>{% endtrans %}
5
+--DATA--
6
+return []
7
+--CONFIG--
8
9
+--EXPECT--
10
+<script>alert(1);</script>
test/Fixtures/TransFilterXss.test
+Test a simple trans filter against XSS injection
+{{ '<script>alert(1);</script>'|trans }}
+<script>alert(1);</script>
0 commit comments