Clean strings in comments before displaying

This commit is contained in:
Ozzie Isaacs
2026-04-03 09:01:01 +02:00
parent 00686ec1f2
commit 7c715f34dc
5 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -74,7 +74,7 @@
{% if entry.comments|length > 0 and entry.comments[0].text|length > 0 %}
<div>
<h2 id="decription">{{ _('Description:') }}</h2>
{{ entry.comments[0].text|safe }}
{{ entry.comments[0].text|clean_string|safe }}
</div>
{% endif %}
</div>