Syntactic Confectionery Delight | |
PerlMonks |
Re: Parsing/Extracting Data from HTML.by juahonen (Novice) |
on Mar 23, 2000 at 18:34 UTC ( [id://5963]=note: print w/replies, xml ) | Need Help?? |
Perl can covert HTML to text too...
$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: Of course, you'll lose all formatting. This method is not quarenteed to properly strip comments.
In Section
Seekers of Perl Wisdom
|
|