Support comments, p tags, and div tags.

This commit is contained in:
ian%hixie.ch 2004-01-25 13:04:23 +00:00
parent 16365fd40c
commit d828839a5b

View File

@ -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;