![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: HTML <=> Text convertionby bart (Canon) |
on Dec 10, 2003 at 17:46 UTC ( #313789=note: print w/replies, xml ) | Need Help?? |
Nevertheless, HTML::Parser comes with an example script that extracts plain text from HTML: eg/htext.
Two: there's an easy HTML::Parser tutorial on gellyfish's own site. The very first example extracts only the pure text. If you want to build your own, starting out from ovid's HTML::TokeParser::Simple, a simpler, more OO-style interface on top of HTML::TokeParser, looks easier to me, than from the raw HTML::Parser.
In Section
Seekers of Perl Wisdom
|
|