diff --git a/inc/field/descriptionfield.class.php b/inc/field/descriptionfield.class.php index 0162edbe3..1fb974e17 100644 --- a/inc/field/descriptionfield.class.php +++ b/inc/field/descriptionfield.class.php @@ -34,6 +34,7 @@ use PluginFormcreatorAbstractField; use Session; +use Toolbox; use GlpiPlugin\Formcreator\Exception\ComparisonException; class DescriptionField extends PluginFormcreatorAbstractField @@ -56,7 +57,8 @@ public function getDesignSpecializationField(): array { } public function getRenderedHtml($domain, $canEdit = true): string { - return nl2br(html_entity_decode(__($this->question->fields['description'], $domain))); + $value = Toolbox::convertTagToImage(__($this->question->fields['description'], $domain), $this->getQuestion()); + return nl2br(html_entity_decode($value)); } public function serializeValue(): string {