Add safe option to newsfeed templates

This commit is contained in:
rejas 2021-11-28 21:32:04 +01:00
parent af6cf70558
commit 19bb2a0238

View File

@ -33,7 +33,7 @@
{% if (config.showSourceTitle and sourceTitle) or config.showPublishDate %} {% if (config.showSourceTitle and sourceTitle) or config.showPublishDate %}
<div class="newsfeed-source light small dimmed"> <div class="newsfeed-source light small dimmed">
{% if sourceTitle and config.showSourceTitle %} {% if sourceTitle and config.showSourceTitle %}
{{ sourceTitle }}{% if config.showPublishDate %}, {% else %}: {% endif %} {{ sourceTitle | safe }}{% if config.showPublishDate %}, {% else %}: {% endif %}
{% endif %} {% endif %}
{% if config.showPublishDate %} {% if config.showPublishDate %}
{{ publishDate }}: {{ publishDate }}:
@ -46,9 +46,9 @@
{% if config.showDescription %} {% if config.showDescription %}
<div class="newsfeed-desc small light{{ ' no-wrap' if not config.wrapDescription }}"> <div class="newsfeed-desc small light{{ ' no-wrap' if not config.wrapDescription }}">
{% if config.truncDescription %} {% if config.truncDescription %}
{{ description | truncate(config.lengthDescription) }} {{ description | truncate(config.lengthDescription) | safe }}
{% else %} {% else %}
{{ description }} {{ description | safe }}
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}