--- a/documents/template.inc.php +++ b/documents/template.inc.php @@ -163,13 +163,13 @@ if (isset($row->value->links)) { $result .= '<h3>Links/Documents</h3><ul itemprop="associatedMedia">'; foreach ($row->value->links as $link) { - $result .= '<li itemscope itemtype="http://schema.org/MediaObject"><a href=' . $link . ' itemprop="url contentURL">' . urlencode($link) . "</a></li>"; + $result .= '<li itemscope itemtype="http://schema.org/MediaObject"><a href=' . htmlspecialchars ($link) . ' itemprop="url contentURL">' . htmlspecialchars ( $link) . "</a></li>"; } $result .= "</ul>"; } $result .= "<small><A itemprop='url' href='" . $row->value->url . "'>View original source...</a> ID: " . strip_tags($row->value->docID) . "</small>"; - $result .= "</div>"; + $result .= "</div>\n"; return $result; }