Rev 12 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12 | Rev 17 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | $html =~ s|<!--.*?-->||gsi; |
42 | $html =~ s|<!--.*?-->||gsi; |
43 | 43 | ||
44 | $html =~ s|<pre>(.*?)</pre>|VGWhoIs::Utils::htmlpre($1)|gsei; |
44 | $html =~ s|<pre>(.*?)</pre>|VGWhoIs::Utils::htmlpre($1)|gsei; |
45 | $html =~ s|<textarea>(.*?)</textarea>|VGWhoIs::Utils::htmlpre($1)|gsei; |
45 | $html =~ s|<textarea>(.*?)</textarea>|VGWhoIs::Utils::htmlpre($1)|gsei; |
46 | 46 | ||
- | 47 | #TODO: big problem here: if the output is "content-type: text/plain", then we must not call render_html!!! |
|
47 | $html =~ s|\n| |g; |
48 | $html =~ s|\n| |g; |
48 | 49 | ||
49 | $html =~ s|<p\s*/{0,1}\s*>|\n|gsi; |
50 | $html =~ s|<p\s*/{0,1}\s*>|\n|gsi; |
50 | $html =~ s|<p\s.*?>|\n|gsi; |
51 | $html =~ s|<p\s.*?>|\n|gsi; |
51 | 52 |