Skip to content

Commit a07322f

Browse files
Escaped aria-label in footer links (#2735) (#2746)
1 parent b3c0ecc commit a07322f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

material/partials/footer.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<nav class="md-footer__inner md-grid" aria-label="{{ lang.t('footer.title') }}">
88
{% if page.previous_page %}
99
{% set direction = lang.t("footer.previous") %}
10-
<a href="{{ page.previous_page.url | url }}" class="md-footer__link md-footer__link--prev" aria-label="{{ direction }}: {{ page.previous_page.title }}" rel="prev">
10+
<a href="{{ page.previous_page.url | url }}" class="md-footer__link md-footer__link--prev" aria-label="{{ direction }}: {{ page.previous_page.title | e }}" rel="prev">
1111
<div class="md-footer__button md-icon">
1212
{% include ".icons/material/arrow-left.svg" %}
1313
</div>
@@ -23,7 +23,7 @@
2323
{% endif %}
2424
{% if page.next_page %}
2525
{% set direction = lang.t("footer.next") %}
26-
<a href="{{ page.next_page.url | url }}" class="md-footer__link md-footer__link--next" aria-label="{{ direction }}: {{ page.next_page.title }}" rel="next">
26+
<a href="{{ page.next_page.url | url }}" class="md-footer__link md-footer__link--next" aria-label="{{ direction }}: {{ page.next_page.title | e }}" rel="next">
2727
<div class="md-footer__title">
2828
<div class="md-ellipsis">
2929
<span class="md-footer__direction">

src/partials/footer.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<a
3939
href="{{ page.previous_page.url | url }}"
4040
class="md-footer__link md-footer__link--prev"
41-
aria-label="{{ direction }}: {{ page.previous_page.title }}"
41+
aria-label="{{ direction }}: {{ page.previous_page.title | e }}"
4242
rel="prev"
4343
>
4444
<div class="md-footer__button md-icon">
@@ -61,7 +61,7 @@
6161
<a
6262
href="{{ page.next_page.url | url }}"
6363
class="md-footer__link md-footer__link--next"
64-
aria-label="{{ direction }}: {{ page.next_page.title }}"
64+
aria-label="{{ direction }}: {{ page.next_page.title | e }}"
6565
rel="next"
6666
>
6767
<div class="md-footer__title">

0 commit comments

Comments
 (0)