Skip to content

Commit 1a5fe98

Browse files
committed
fix(dscriptionfield): rendering shows HTML tags
1 parent c9486b7 commit 1a5fe98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inc/field/descriptionfield.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
namespace GlpiPlugin\Formcreator\Field;
3434

3535
use PluginFormcreatorAbstractField;
36+
use Glpi\Toolbox\Sanitizer;
3637
use Session;
3738
use Toolbox;
3839
use GlpiPlugin\Formcreator\Exception\ComparisonException;
@@ -58,6 +59,7 @@ public function getDesignSpecializationField(): array {
5859

5960
public function getRenderedHtml($domain, $canEdit = true): string {
6061
$value = Toolbox::convertTagToImage(__($this->question->fields['description'], $domain), $this->getQuestion());
62+
$value = Sanitizer::unsanitize($value);
6163
return nl2br(html_entity_decode($value));
6264
}
6365

0 commit comments

Comments
 (0)