From dca3c94134796479bb1e56e532517ec7e14f1f56 Mon Sep 17 00:00:00 2001 From: Maud Leray Date: Thu, 19 Sep 2024 11:32:28 +0200 Subject: [PATCH] Fix special characters in submenu navigation and in footer (#2386) This can happen if some pages have special characters in their title --- templates/burger-menu-items.twig | 2 +- templates/footer.twig | 4 ++-- templates/navigation-submenu.twig | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/burger-menu-items.twig b/templates/burger-menu-items.twig index fd345450fd..585cab2295 100644 --- a/templates/burger-menu-items.twig +++ b/templates/burger-menu-items.twig @@ -54,7 +54,7 @@ data-ga-category="Submenu Navigation" data-ga-action="{{ link_ga_action }}" data-ga-label="{{ page_category }}"> - {{ item.title }} + {{ item.title|e('wp_kses_post')|raw }} {% endfor %} diff --git a/templates/footer.twig b/templates/footer.twig index 984848db1b..c003c0d4a5 100644 --- a/templates/footer.twig +++ b/templates/footer.twig @@ -24,7 +24,7 @@ rel="noopener noreferrer" {% endif %} > - {{ primary.title }} + {{ primary.title|e('wp_kses_post')|raw }} {% endfor %} @@ -42,7 +42,7 @@ rel="noopener noreferrer" {% endif %} > - {{ secondary.title }} + {{ secondary.title|e('wp_kses_post')|raw }} {% endfor %} diff --git a/templates/navigation-submenu.twig b/templates/navigation-submenu.twig index 5162314aa5..ac0fb49cd9 100644 --- a/templates/navigation-submenu.twig +++ b/templates/navigation-submenu.twig @@ -16,7 +16,7 @@ data-ga-category="Submenu Navigation" data-ga-action="{{ item.title }}" data-ga-label="{{ page_category }}"> - {{ item.title }} + {{ item.title|e('wp_kses_post')|raw }} {% endfor %}