diff --git a/css/styles.scss b/css/styles.scss index ee7988cd4..b429dddcd 100644 --- a/css/styles.scss +++ b/css/styles.scss @@ -379,6 +379,16 @@ form#plugin_formcreator_form { width: 48px; } +.plugin_formcreator_description { + table { + border-width: 1px; + + tr, td { + border-width: 1px; + } + } +} + /* CONDITIONS */ .div_show_condition_field, .div_show_condition_operator, diff --git a/inc/field/descriptionfield.class.php b/inc/field/descriptionfield.class.php index e890b8d36..089eda2a1 100644 --- a/inc/field/descriptionfield.class.php +++ b/inc/field/descriptionfield.class.php @@ -61,7 +61,8 @@ public function showForm(array $options): void { public function getRenderedHtml($domain, $canEdit = true): string { $value = Toolbox::convertTagToImage(__($this->question->fields['description'], $domain), $this->getQuestion()); $value = Sanitizer::unsanitize($value); - return nl2br(html_entity_decode($value)); + $value = '
' . $value . '
'; + return $value; } public function serializeValue(PluginFormcreatorFormAnswer $formanswer): string {