CSS semicolons getting removed #560
Unanswered
mbowles-bhill
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It's not really HtmlSanitier removing those characters, but rather AngleSharp - it attempts to normalize any CSS it processes. Not sure if there's an option to prevent what you're seeing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My application contains Rich Text boxes that allow users to add styles to their text. I am attempting to Sanitize the content and compare the sanitized input to the original to find if any malicious html was inserted. However, some css styles include semicolons in the html, but the sanitizer removes them, so I get a false positive on malicious html. For example underlined text comes in as
but the sanitizer removes the semicolons. But because they are now different the program thinks that there was malicious html because the sanitizer stripped the semicolon out.
Is there something I can configure so the semicolon is not removed?
Beta Was this translation helpful? Give feedback.
All reactions