Skip to content

Commit

Permalink
Fixed unescaped of quotes in ARIA labels (#8053)
Browse files Browse the repository at this point in the history
  • Loading branch information
reteps authored Mar 2, 2025
1 parent 922cb7c commit 27ba956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/templates/partials/toc-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<!-- Table of contents list -->
{% if toc_item.children %}
<nav class="md-nav" aria-label="{{ toc_item.title | striptags }}">
<nav class="md-nav" aria-label="{{ toc_item.title | striptags | e }}">
<ul class="md-nav__list">
{% for toc_item in toc_item.children %}
{% include "partials/toc-item.html" %}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/partials/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{% endif %}

<!-- Table of contents -->
<nav class="md-nav md-nav--secondary" aria-label="{{ title }}">
<nav class="md-nav md-nav--secondary" aria-label="{{ title | e }}">
{% set toc = page.toc %}

<!--
Expand Down

0 comments on commit 27ba956

Please sign in to comment.