diff --git a/inc/fields/descriptionfield.class.php b/inc/fields/descriptionfield.class.php index 7c75e5a2a..855386984 100644 --- a/inc/fields/descriptionfield.class.php +++ b/inc/fields/descriptionfield.class.php @@ -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;