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

Replies are listed 'Best First'.
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