-
Below are the tags mentioned to be allowed by default. But why is it removing html,body tags etc ? I wanted some clarity on the documentation of this. I am aware these must not be allowed from security perspective but why does it show that it is allowed ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are you using the |
Beta Was this translation helpful? Give feedback.
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 theSanitizeDocument()
method.