I'd suggest looking at the entry in perlfaq9 about this.
If you want a one liner that does it in the recommended fashion you could try something like:
perl -MHTML::Parser -e'HTML::Parser->new(text_h => [ sub { print shif +t }, 'dtext'])->parse_file($ARGV[0])' <filename>
/J\
In reply to Re: HTML to text
by gellyfish
in thread HTML to text
by fatalserpent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |