diff --git a/photologue/templates/photologue/gallery_detail.html b/photologue/templates/photologue/gallery_detail.html index c435f8d..cba9126 100755 --- a/photologue/templates/photologue/gallery_detail.html +++ b/photologue/templates/photologue/gallery_detail.html @@ -66,7 +66,7 @@ SPDX-License-Identifier: GPL-3.0-or-later {% endfor %}

{% endif %} -{% if gallery.description %}

{{ gallery.description|safe|linebreaksbr }}

{% endif %} +{% if gallery.description %}

{{ gallery.description|linebreaksbr }}

{% endif %}
{% if not guest_mode %} diff --git a/photologue/templates/photologue/photo_detail.html b/photologue/templates/photologue/photo_detail.html index a936847..0c40697 100644 --- a/photologue/templates/photologue/photo_detail.html +++ b/photologue/templates/photologue/photo_detail.html @@ -15,7 +15,7 @@ SPDX-License-Identifier: GPL-3.0-or-later

{% trans "Published" %} {{ object.date_added }}

-{% if object.caption %}

{{ object.caption|safe }}

{% endif %} +{% if object.caption %}

{{ object.caption }}

{% endif %} {{ object.title }}