-
Notifications
You must be signed in to change notification settings - Fork 180
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
Stripping non-tags #79
Comments
Actually the UGCPolicy is doing the same thing. If someone was in a chat conversation about something math related, like "if a<b and b<c, then a<c", this all gets stripped after the first a. |
Further to this, it only happens if the
|
Hi @buro9 any updates on this? Or has this problem been tackled in any other issue? |
have the same issue
|
This stems from the Go HTML tokenizer and it is performing to how I think it should, but I'd note that the tokenizer is not part of bluemonday, we just depend on it. It's maintained by the core Go team. Specifically it's this package golang.org/x/net/html And what is happening depends on what follows a If If To the examples given:
bluemonday reads the token type for each token read, and bluemonday receives this behaviour is expected. |
bluemonday.StrictPolicy().Sanitize("a<b")
returns "a".
Is there a reason its not looking for an actual tag, or is this a mistake?
The text was updated successfully, but these errors were encountered: