Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: HTML <=> Text convertion

by bart (Canon)
on Dec 10, 2003 at 17:46 UTC ( #313789=note: print w/replies, xml ) Need Help??


in reply to HTML <=> Text convertion

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://313789]
help
Chatterbox?
[Corion]: Tux: (Co-)organizing a Perl event doesn't make you know Perl better, but only Perl people ;)
[erix]: you take up perlisms by osmosis

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2017-05-30 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?