MDL-85504 form: Legend's label template data should not be escaped

The label context data in the fieldset's legend tag should not be
escaped and allow raw HTML given that legend tags can contain
phrasing content and headings.

See developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/legend.
This commit is contained in:
Jun Pataleta
2025-07-23 16:10:53 +08:00
parent c97987e9ed
commit e894f95f6c
+1 -1
View File
@@ -9,7 +9,7 @@
{{$element}}
{{#label}}
<fieldset class="w-100 m-0 p-0 border-0">
<legend class="sr-only">{{label}}</legend>
<legend class="sr-only">{{{label}}}</legend>
<div class="d-flex flex-wrap align-items-center">
{{#element.elements}}
{{{separator}}}