mganss / HtmlSanitizer

Cleans HTML to avoid XSS attacks
MIT License
1.55k stars 200 forks source link

Comments Tag #195

Closed doaji closed 4 years ago

doaji commented 4 years ago

Hi, i noticed sanitizer, cleans out all comments in a html text. is there a tag i can pass for sanitizer to ignore comments?

mganss commented 4 years ago

Subscribe to the RemovingComment event and set the Cancel property to true. See also the Hooks entry in the Wiki.

doaji commented 4 years ago

thanks for the quick response