$htmltext =~ s/<(.*)>//g;
...will replace all tags with emptiness.
If you wish to convert br's and p's to newlines before they are stripped, add:
$htmltext =~ s/<(br|p)>/\n\n/ig;
before the first command.
Of course, you'll lose all formatting. This method is not quarenteed to properly strip comments.
In reply to Re: Parsing/Extracting Data from HTML.
by juahonen
in thread Parsing/Extracting Data from HTML.
by Speedfreak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |