http://www.perlmonks.org?node_id=142756


in reply to Problem with HTML::Clean

I wouldn't use HTML::Clean on pre-parsed pages. That's your solution. I don't believe it was written to take php/asp style tags into account, only to parse either straight HTML or parsed HTML right before being output from a script.

How are you configuring HTML::Clean in your script (code please)? You can set varying "levels" and whether or not it should strip comments, which may or may not help you.

Update: Not that I particularly care (obviously I care enough to post this), but why would this node lose experience (2 votes against it, at -1 when I wrote this)? I use HTML::Clean pretty extensively, and it's not made for the weirdo tags that ASP and PHP use. What isn't helpful about this?

-Any sufficiently advanced technology is
indistinguishable from doubletalk.

Replies are listed 'Best First'.
Re: Re: Problem with HTML::Clean
by theguvnor (Chaplain) on Feb 01, 2002 at 21:07 UTC
    Dunno.. I also got downvoted when I wasn't trying to be nasty, only (admittedly very weakly) funny. I've noted that humour doesn't do very well in the monestary, with few exceptions. Maybe some monks considered your post to be negative... who knows.