From 78e1bfa1d6e282bed5a53862330d50df10c584f7 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Thu, 15 Feb 2024 19:13:42 +0100 Subject: [PATCH] fix --- layouts/partials/blocks/templates/gallery/grid.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/blocks/templates/gallery/grid.html b/layouts/partials/blocks/templates/gallery/grid.html index afffc611..dd9b6003 100644 --- a/layouts/partials/blocks/templates/gallery/grid.html +++ b/layouts/partials/blocks/templates/gallery/grid.html @@ -19,7 +19,7 @@ {{ end }} <a class="glightbox" role="button" - data-glightbox="type: image; {{ if $lightbox_text }}description: {{ partial "PrepareText" $lightbox_text }}{{ end }}" + data-glightbox="type: image; {{ with $lightbox_text }}description: {{ . | safeHTML }}{{ end }}" href="{{ partial "GetLightboxUrl" (dict "id" .id) }}" title="{{- i18n "commons.lightbox.link.title" -}}" aria-label="{{- i18n "commons.lightbox.link.title" -}}"> -- GitLab