Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to get HTML::Parser to return a line of parsed text

by japhy (Canon)
on Feb 06, 2001 at 19:53 UTC ( #56675=note: print w/ replies, xml ) Need Help??


in reply to How to get HTML::Parser to return a line of parsed text

TMTOWTDI:

use YAPE::HTML; $plain_text = YAPE::HTML->new($HTML)->display(0);


japhy -- Perl and Regex Hacker


Comment on Re: How to get HTML::Parser to return a line of parsed text
Download Code
Re: Re: How to get HTML::Parser to return a line of parsed text
by japhy (Canon) on Feb 06, 2001 at 20:30 UTC
    I've noticed that the display method will still show DTDs and PIs and SSIs and comments. I'd appreciate any feedback as to whether these should be discarded.
    The display method takes a number which represents the depth of tags to show. If you give it 0, no tags are shown. If you give it 1, the top-most layer of tags is shown. (-1, or no value, expands all tags.) Should all non-text items be included in this filtering? Or just tags?


    japhy -- Perl and Regex Hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://56675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-07-13 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (247 votes), past polls