Skip to content
Snippets Groups Projects
Commit 826b17d3 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

examples: Fix HTML injection in templates

parent 6d24064b
No related branches found
No related tags found
No related merge requests found
Pipeline #7005 passed
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
{%- endif -%} {%- endif -%}
/> />
<p id="text"> <p id="text">
{{ schild.text|default(lipsum(n=1, min=5, max=10)) }} {{ schild.text|default(lipsum(n=1, min=5, max=10))|e }}
</p> </p>
</div> </div>
{% endblock content %} {% endblock content %}
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
{%- block content -%} {%- block content -%}
<div> <div>
<p id="text"> <p id="text">
{{ schild.text|default(lipsum(n=2, min=5, max=10)) }} {{ schild.text|default(lipsum(n=2, min=5, max=10))|e }}
</p> </p>
</div> </div>
{% endblock content %} {% endblock content %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment