Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: HTML::Scrubber - Perl extension for scrubbing/sanitizing html (turn "on" off)

by tye (Sage)
on Apr 20, 2003 at 17:06 UTC ( [id://251846]=note: print w/replies, xml ) Need Help??


in reply to Re: Re^2: HTML::Scrubber - Perl extension for scrubbing/sanitizing html (turn "on" off)
in thread HTML::Scrubber - Perl extension for scrubbing/sanitizing html

He already has an entry

'*' => 1, # default rule, allow all attributes
so I was proposing that he add support for a style of option that would allow all attributes that start with "on" to be disallowed.

I proposed two possible ways to allow the user to specify such, "on*" => 0 or qr/^on/i => 0. The first would require that the code check for "*" in options while the second would require checking for references to Regexp objects.

Either one would require extra work in the module. But the huge number of attribute names matching on* (and that this list appears to be growing over time) means the extra effort might be worthwhile.

                - tye

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-25 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found