X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/3ab778af0d83ec94a63bccd029132166ea08bcd8..327c4c234570dabd716f92da15cf0ef716b9cb5d:/browser.plp diff --git a/browser.plp b/browser.plp index 741868b..c10c20f 100644 --- a/browser.plp +++ b/browser.plp @@ -181,15 +181,15 @@ sub saytitlecol { sprintf("try { %s; return false } catch(err) { return true }", "document.getElementById('$id').classList.toggle('target')", ), - $_, + Entity($_), ); } $row->{title}; print '
$_
" for map { ref $_ ? @$_ : $_ || () } - $row->{description}, $row->{notes}; - printf 'Resources: %s.', join(', ', - map { qq($_->{title}) } @$_ - ) for grep { @$_ } $row->{links} // (); + Entity($row->{description}), formathtml($row->{notes}); # sic + printf 'Resources: %s.', join(', ', map { + sprintf '%s', EscapeHTML($_->{url}), $_->{title} + } @$_) for grep { @$_ } $row->{links} // (); print '