Skip to content

Commit

Permalink
Fix special characters in submenu navigation and in footer (#2386)
Browse files Browse the repository at this point in the history
This can happen if some pages have special characters in their title
  • Loading branch information
mleray authored Sep 19, 2024
1 parent a26db22 commit dca3c94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/burger-menu-items.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
</a>
</li>
{% endfor %}
Expand Down
4 changes: 2 additions & 2 deletions templates/footer.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
rel="noopener noreferrer"
{% endif %}
>
{{ primary.title }}
{{ primary.title|e('wp_kses_post')|raw }}
</a>
</li>
{% endfor %}
Expand All @@ -42,7 +42,7 @@
rel="noopener noreferrer"
{% endif %}
>
{{ secondary.title }}
{{ secondary.title|e('wp_kses_post')|raw }}
</a>
</li>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion templates/navigation-submenu.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
</a>
</li>
{% endfor %}
Expand Down

0 comments on commit dca3c94

Please sign in to comment.