Commit 39dce1af by Julien Jorry

Fix comptoir content raw

parent 413e88c2
......@@ -14,7 +14,12 @@
<img class="w-25 float-right mr-2" src="{% path comptoir.media, 'big' %}" alt="{{comptoir.name}}">
{% endif %}
{% if comptoir.content != null %}
<p>{{comptoir.content|truncate(50, true, '...')|raw}}</p>
<p>
{% if news.content|striptags|length < 50 %}
{{ comptoir.content|striptags|raw }}
{% else %}
{{ comptoir.content|striptags|truncate(50, true, '...')|raw }}</p>
{% endif %}
{% endif %}
</div>
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment