Skip to content

Commit 09c0b4b

Browse files
committed
fix(description): simple text may render HTML tags
Signed-off-by: Thierry Bugier <[email protected]>
1 parent 099e900 commit 09c0b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/field/descriptionfield.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function getValueForDesign() {
7373
public function getValueForTargetText($richText) {
7474
$text = $this->question->fields['description'];
7575
if (!$richText) {
76-
$text = nl2br(html_entity_decode($text));
76+
$text = nl2br(strip_tags(html_entity_decode($text)));
7777
}
7878

7979
return $text;

0 commit comments

Comments
 (0)