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

and my follow-up are probably exactly what you want.

Naive approach, treats the text between script/style tags as plaintext. See http://cpansearch.perl.org/src/GAAS/HTML-Parser-3.68/eg/htext and HTML::StripScripts, HTML stripper..., strip HTML tags

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

Replies are listed 'Best First'.
Re^3: How to use HTML::Parser to encode text with HTML entities?
by Your Mother (Archbishop) on Dec 01, 2010 at 22:22 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.