in reply to Re: HTML::Scrubber - Perl extension for scrubbing/sanitizing html
in thread HTML::Scrubber - Perl extension for scrubbing/sanitizing html

This screams for 'on*' => 0 or perhaps qr/^on/i => 0 support. (:

                - tye

Replies are listed 'Best First'.
Re: Re^2: HTML::Scrubber - Perl extension for scrubbing/sanitizing html (turn "on" off)
by Anonymous Monk on Apr 19, 2003 at 09:54 UTC

    Hi, could you explain this? I haven't seen the notation before. Does it mean instead of onunload etc, he would just have 'load' as the list entry?

      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