Skip to content

Need clarity on Allowed Tags #540

Closed Answered by mganss
pras5123 asked this question in Q&A
Discussion options

You must be logged in to vote

Are you using the Sanitize() method? This is for sanitizing HTML fragments, not whole documents, resulting in the html and body tags getting removed. If you want to sanitize a whole HTML document, use the SanitizeDocument() method.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pras5123
Comment options

Answer selected by pras5123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants