Skip Menu |

This queue is for tickets about the HTML-Scrubber CPAN distribution.

Report information
The Basics
Id: 94569
Status: new
Priority: 0/
Queue: HTML-Scrubber

People
Owner: Nobody in particular
Requestors: bitcard [...] 32ths.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.11
Fixed in: (no value)



Subject: Way to reset or remove previously added allowed tags
Hi, $scrubber->allow( qw(br p) ); .. .. .. later in code, I need to allow only br for instance, as far as I can tell, I have to $scrubber->deny( qw(p) ) but, this implies that i know I've previously allowed p, which the code at that time may not. The only solution I can think of is to instantiate a whole new HTML::Scrubber object to make sure I have a clean slate which I guess isn't a big deal. Would you welcome a patch that adds a get_denied and get_allowed? Or if you prefer a ->reset which would reset settings to what they were when instantiated? I'd be happy to implement a suggested solution with tests if you feel this would be a good change. If there is already a way to do this I'm missing, feel free to close, and I'll submit a doc patch. Thanks, - Mike