Skip to content

Commit 6626849

Browse files
authored
Merge pull request dokuwiki#4008 from annda/formlabel-escapefix
Prevent double escaping of form labels
2 parents 788b33a + dbcceef commit 6626849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/Form/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public function addLabel($label, $for='', $pos = -1)
336336
*/
337337
public function addLabelHTML($content, $for='', $pos = -1)
338338
{
339-
$element = new LabelElement(hsc($content));
339+
$element = new LabelElement($content);
340340

341341
if (is_a($for, '\dokuwiki\Form\Element')) {
342342
/** @var Element $for */

0 commit comments

Comments
 (0)