We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df62b22 commit b79cfa9Copy full SHA for b79cfa9
inc/field/descriptionfield.class.php
@@ -78,10 +78,10 @@ public function getValueForDesign(): string {
78
public function getValueForTargetText($domain, $richText): ?string {
79
$text = $this->question->fields['description'];
80
if (!$richText) {
81
- $text = nl2br(strip_tags(html_entity_decode(__($text, $domain))));
+ $text = Sanitizer::unsanitize(strip_tags(html_entity_decode(__($text, $domain))));
82
}
83
84
- return $text;
+ return Sanitizer::unsanitize(__($text, $domain));
85
86
87
public function moveUploads() {
0 commit comments