oalders / html-restrict

HTML::Restrict - Strip away unwanted HTML tags
Other
10 stars 9 forks source link

Way to share rule sets #14

Open dagolden opened 11 years ago

dagolden commented 11 years ago

I've gone to some effort to create a pretty liberal rule set of tags, but one that still disallows most styling. This should be "safe" to display.

I don't want to release a subclass of HTML::Restrict to share it. How about an HTML::Restrict::Rules that offers some rule sets by name? Then rule sets deemed "worthy" could be included for people to use instead of rolling their own.

(And then possibly the 'rules' parameter could load that if given a string and not a hash reference.)

oalders commented 11 years ago

That sounds like a good idea to me. My main concern has always been to try to keep things simple and I think this would allow people to get up and running quickly without having to create a lot of custom rules.