From 157ccd811e874ef1a592955cc7bc4df0c67d2d02 Mon Sep 17 00:00:00 2001 From: Maurizio Monticelli Date: Wed, 2 Jul 2025 09:30:35 +0200 Subject: [PATCH 1/2] fix: allow html in labels --- src/Resources/views/includes/layout/_content.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/views/includes/layout/_content.html.twig b/src/Resources/views/includes/layout/_content.html.twig index 0ab1b9c..0fd67c2 100644 --- a/src/Resources/views/includes/layout/_content.html.twig +++ b/src/Resources/views/includes/layout/_content.html.twig @@ -12,7 +12,7 @@ {{ attr|map((value, attr) => "#{attr}=\"#{value}\"")|join(' ')|raw }} >
- {{ content.option('label')|trans }} + {{ content.option('label')|trans|raw }} {% if content.option('help') is not empty %} {{ bootstrap_icon('info-circle-fill', { From 842dc8844feb567d12c764af88bf30717100c23a Mon Sep 17 00:00:00 2001 From: Maurizio Monticelli Date: Wed, 2 Jul 2025 16:06:32 +0200 Subject: [PATCH 2/2] fix: add striptags for title attribute --- src/Resources/views/includes/layout/_content.html.twig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Resources/views/includes/layout/_content.html.twig b/src/Resources/views/includes/layout/_content.html.twig index 0fd67c2..fd35e10 100644 --- a/src/Resources/views/includes/layout/_content.html.twig +++ b/src/Resources/views/includes/layout/_content.html.twig @@ -11,7 +11,11 @@ class="{% if (not isHiddenType and isFormCase) or not isFormCase %}px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4{% endif %} {{ content.option('attr')['class'] ?? '' }}" {{ attr|map((value, attr) => "#{attr}=\"#{value}\"")|join(' ')|raw }} > -
+
{{ content.option('label')|trans|raw }} {% if content.option('help') is not empty %} @@ -64,7 +68,7 @@ {% endif %} {% if content.option('label') %} - {{ content.option('label')|trans }} + {{ content.option('label')|trans|raw }} {% endif %}