fix: prevent DOM text reinterpretation as HTML in lang select

This commit is contained in:
NetworkCats
2026-03-07 20:16:49 +08:00
parent 14e65937a2
commit 8595420139
+1 -1
View File
@@ -1,6 +1,6 @@
<div class="footer-lang">
<label for="lang-select" class="sr-only">{{ t_language }}</label>
<select id="lang-select" class="lang-select" autocomplete="off" onchange="if(this.value)window.location.href=this.value+window.location.search">
<select id="lang-select" class="lang-select" autocomplete="off" onchange="if(this.value){var u=new URL(this.value,window.location.origin);u.search=window.location.search;window.location.href=u.href}">
{% for l in all_locales %}
<option value="/{{ l.tag() }}"{% if *l == locale %} selected{% endif %}>{{ l.name() }}</option>
{% endfor %}