Best to let one of the several CPAN modules do this for you. I'd look at HTML::Strip for starters.
In reply to Re^2: Getting the text of the html document
by bradcathey
in thread Getting the text of the html page
by agynr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |