diff --git a/include/simpleplugin/class_Attribute.inc b/include/simpleplugin/class_Attribute.inc index 146a414b0fce2b9a44f0f7d6e7be97482e3f24e4..7c523b20a39e7042ed977caf2b353a6ae9fb7f07 100644 --- a/include/simpleplugin/class_Attribute.inc +++ b/include/simpleplugin/class_Attribute.inc @@ -560,7 +560,18 @@ class Attribute { if ($this->visible) { if ($readOnly) { - $input = '{literal}'.htmlentities($this->getValue(), ENT_COMPAT, 'UTF-8').'{/literal}'; + $value = $this->getValue(); + if (is_array($value)) { + $input = '{literal}'.implode('<br/>', array_map( + function ($v) + { + return htmlentities($v, ENT_COMPAT, 'UTF-8'); + }, + $value + )).'{/literal}'; + } else { + $input = '{literal}'.htmlentities($value, ENT_COMPAT, 'UTF-8').'{/literal}'; + } } elseif (is_object($this->plugin) && $this->plugin->is_template) { $input = $this->renderTemplateInput(); } else {