Skip to content
Snippets Groups Projects
Commit cae33247 authored by Yaroslav Shandra's avatar Yaroslav Shandra Committed by Andrii Chyrskyi
Browse files

Issue #3259703 by yaroslav-shandra: Private message text is rendered with html code

parent a229c78b
No related branches found
No related tags found
1 merge request!90Issue #3259703 by yaroslav-shandra: Private message text is rendered with html code
......@@ -9,7 +9,7 @@
{% if view_mode == 'full' %}
{{ item.content }}
{% else %}
{{ item.content['#text']|striptags|length > 60 ? item.content['#text']|striptags|slice(0, 57) ~ '...' : item.content['#text']|striptags }}
{{ item.content['#text']|striptags|length > 60 ? item.content['#text']|striptags|convert_encoding('UTF-8', 'HTML-ENTITIES')|slice(0, 57) ~ '...' : item.content['#text']|convert_encoding('UTF-8', 'HTML-ENTITIES')|striptags }}
{% endif %}
</span>
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment