Robert Means
Robert Means
Can you provide better steps to replicate the error? Again, there isn't a build script.
Thanks @Insomniak313! - I thought it was something with the version of htmlparser2.
Hi @maamounkhlifi - Did you manage to solve this issue? Is there any other assistance we can give, or can I close this?
Thanks for this report!
This PR has landed and will be in the next release - early October.
I think your test case is incomplete. What HTML are we sanitizing?
Taking a quick look at the code, I think the problem stems from the newer `onclosetag` handler and how html-parser2 handles malformed tags. I think it treats the `
@srenoufd - would you mind writing a small (failing) test for this so that we can see the issue more clearly?
@srenoufd - Thanks for doing that!! You could have just added the test here in the issue, but it did allow me to see the issue are having a little...
It is up to you how stringent you want to be with the sanitization, so that regex would be fine.