Skip to content

Commit 27ba956

Browse files
authored
Fixed unescaped of quotes in ARIA labels (#8053)
1 parent 922cb7c commit 27ba956

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/templates/partials/toc-item.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<!-- Table of contents list -->
3232
{% if toc_item.children %}
33-
<nav class="md-nav" aria-label="{{ toc_item.title | striptags }}">
33+
<nav class="md-nav" aria-label="{{ toc_item.title | striptags | e }}">
3434
<ul class="md-nav__list">
3535
{% for toc_item in toc_item.children %}
3636
{% include "partials/toc-item.html" %}

src/templates/partials/toc.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{% endif %}
2828

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

3333
<!--

0 commit comments

Comments
 (0)