-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"RemovingTag" event isn't fired. #58
Comments
This happens because This also means you cannot currently sanitize complete HTML documents, only (body) fragments. I know this is not an ideal situation, but I have no idea how to fix this right now without making the sanitizer overly complex and thus error prone. Suggestions are very welcome 😄 |
Was this also in v2?
You can do that also in this lib? |
This was not in v2 because CsQuery is not as sophisticated a parser as AngleSharp. I've added wrapping the input in |
Thanks Michael. Any idea when this fix will be released? |
Released as 3.1.93. |
Hi,
After updating to HtmlSanitizer with AngleSharp, we detect the follow behaviour:
When sanitizing a text only containing a element "script" or "style", the RemovingTag event isn't fired.
Here's a test case:
Adding another tag to the text, works fine.
Thanks
The text was updated successfully, but these errors were encountered: