in reply to How to use HTML::Parser to encode text with HTML entities?

Re: Strip HTML tags again and my follow-up are probably exactly what you want. They use HTML::TokeParser::Simple to parse and HTML::Tagset to decide what is "text" and what is supposed to be a tag. HTML::Parser is a bit bare bones and I wouldn't recommend it over the TokeParser modules (or HTML::TreeBuilder).

  • Comment on Re: How to use HTML::Parser to encode text with HTML entities?

Replies are listed 'Best First'.
Re^2: How to use HTML::Parser to encode text with HTML entities?
by Anonymous Monk on Dec 01, 2010 at 21:34 UTC

      It wasn't given here as the way to do stripping but as an approach to simple parsing with custom tags toward any end.