Skip to content

Commit

Permalink
fix(description): simple text may render HTML tags
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Sep 15, 2020
1 parent 5fedd96 commit dc82b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/fields/descriptionfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getValueForDesign() {
public function getValueForTargetText($richText) {
$text = $this->question->fields['description'];
if (!$richText) {
$text = nl2br(html_entity_decode($text));
$text = nl2br(strip_tags(html_entity_decode($text)));
}

return $text;
Expand Down

0 comments on commit dc82b19

Please sign in to comment.