Closed edvjur closed 3 years ago
What do you think @buro9?
If you make a PR and it has test cases showing that comments of are safely handled by an AllowComments(boolean)
policy then I'll accept it :smile:
@buro9 We also need this. Is there any change of mind regarding this?
Hi there.
I was looking for the reason why my comments are being sanitized and I found that they are simply ignored by default: https://github.com/microcosm-cc/bluemonday/blob/master/sanitize.go#L228
I bet that for most of the cases comments are not necessary, but in my case, they are essential.
My question is: do you guys think that adding AllowComments method (false by default) is a good, safe idea and is worthy of PR?