while (<>) {
if (/DEBUG: /) { print STDERR $_ }
- elsif ( /^(<\w+>)?(Parse error|Warning)/) { print STDERR html2txt($_) }
- elsif ( /^<pre class="debug">/) { print STDERR html_unescape($_) }
+ elsif ( /^<pre class="(\w+)">/) { print STDERR uc($1).': '.html2txt($_) }
elsif ( /^(<\w+>)?Fatal error/ .. /^\s+thrown in/) { print STDERR html2txt($_) }
+ elsif ( /^(<\s*\w+\s*\/?>)?(Parse error|Fatal error|Warning|Notice|$)/) { print STDERR $_ if ($_=html2txt($_)) and $_ !~ /^\s*$/ }
else { print $_ }
}