diff --git a/application/view/omeka/site/item/browse.phtml b/application/view/omeka/site/item/browse.phtml index 9e6f65c6cc..00bd13a382 100644 --- a/application/view/omeka/site/item/browse.phtml +++ b/application/view/omeka/site/item/browse.phtml @@ -1,4 +1,6 @@ plugin('translate'); $escape = $this->plugin('escapeHtml'); $thumbnail = $this->plugin('thumbnail'); @@ -44,7 +46,10 @@ $headingTerm = $this->siteSetting('browse_heading_property_term'); $bodyTerm = $this->siteSetting('browse_body_property_term'); foreach ($items as $item): $heading = $headingTerm ? $item->value($headingTerm, ['default' => $translate('[Untitled]'), 'lang' => $valueLang]) : $item->displayTitle(null, $valueLang); - $body = $bodyTerm ? $item->value($bodyTerm, ['lang' => $valueLang]) : $item->displayDescription(null, $valueLang); + $body = $bodyTerm ? $item->value($bodyTerm, ['lang' => $valueLang]) : $escape($item->displayDescription(null, $valueLang)); + if ($body instanceof ValueRepresentation) { + $body = $body->asHtml(); + } ?>