diff --git a/include/simpleplugin/class_Attribute.inc b/include/simpleplugin/class_Attribute.inc
index 8228f7e3028988ff9c3e511dda9cfa747e092c8e..708d2033fe02132aff898eac770566dbc8812941 100644
--- a/include/simpleplugin/class_Attribute.inc
+++ b/include/simpleplugin/class_Attribute.inc
@@ -566,7 +566,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 {