X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/814bef45401eedb1a152ca0b5a07898fb31cb7ef..ff4a38aff3e2d22ef34e33cd5df7a16d8ceeb196:/browser.plp diff --git a/browser.plp b/browser.plp index 85ed156..de245b8 100644 --- a/browser.plp +++ b/browser.plp @@ -311,6 +311,15 @@ sub formatnotes { return @html; } +sub notestotitle { + my @notes = @_; + for (@notes) { + EscapeHTML($_); + s{ \[ ([^]]*) \] \( [^)]* \) }{$1}gx; # strip link urls + } + return @notes; +} + sub saytitlecol { my ($id) = @_; my $row = $caniuse->{data}->{$id}; @@ -396,7 +405,7 @@ sub saybrowsercols { map { split / /, $_ } $prev )); - $title .= "\n".EscapeHTML($_) for @notes; + $title .= "\n$_" for notestotitle(@notes); printf('%s', join(' ',