microcosm-cc / bluemonday

bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS
https://github.com/microcosm-cc/bluemonday
BSD 3-Clause "New" or "Revised" License
3.14k stars 176 forks source link

Feature request: blacklist elements from policy #73

Open jaredscheib opened 6 years ago

jaredscheib commented 6 years ago

Hi there,

Forgive me if this feels like an inappropriate way to cast a vote, and feel free to close if so!

I noticed in the TODO that the Blacklist concept is mentioned, and that you were interested in investigating whether this would be useful to devs. So I wanted to cast a vote in favor of this request. I'd love to be able to use the UGCPolicy and then simply take out the parts that aren't applicable to my use case, such as UGCPolicy without Blockquotes.

Thanks for your work!

manojmalik20 commented 1 year ago

+1 on this.