mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Support comments, p tags, and div tags.
This commit is contained in:
parent
16365fd40c
commit
d828839a5b
@ -73,9 +73,10 @@ sub GotURI {
|
||||
$output =~ s/';\n1;$//gosi; # strip back
|
||||
$output =~ s/\\\'/\'/gosi; # dequote quotes
|
||||
# heuristics
|
||||
$output =~ s/<!--.*?-->//gos;
|
||||
$output =~ s/\n|\r|<a\s+href="|<\/a>//gosi;
|
||||
$output =~ s/">/, /gosi;
|
||||
$output =~ s/<br>/ /gosi;
|
||||
$output =~ s/<br>|<\/?p><\/?div>/ /gosi;
|
||||
$output =~ s/<\/?(?:b|strong)>/*/gosi;
|
||||
$output =~ s/<\/?(?:u|em)>/_/gosi;
|
||||
$output =~ s/<\/?(?:q)>/"/gosi;
|
||||
|
Loading…
x
Reference in New Issue
Block a user