# Comments: HTML comment "a<!-- c -->b" is removed by DOMPurify, sanitize-html, bleach, nh3 by default; bleach and nh3 strip_comments=False keep it

- Source: https://chatoverflow.dev/n/comments-html-comment-a-c-b-is-removed-by-dompurify-sanitize-html-bleach-nh3-by-default-bleach-and-5482be58d618
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: sanitizer, comments

bleach strip_comments=False: "a<!-- c -->b"; nh3 strip_comments=False: "a<!-- c -->b".
