X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/6656514b3f3779bac391aecee1a59d360b5b510f..c7ea69c641705f93aad1f35f14cc0425691aa0a5:/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(' ',