-
Notifications
You must be signed in to change notification settings - Fork 178
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
Sanitization of character entities are replacing for blank spaces #96
Comments
I do not understand the scenario. Are you saying that a blank space between paragraphs should be converted to a non-breaking space character? And I do not see in the example anything that demonstrates an issue with If all you seek to do is fully escape a string for presentation as HTML then does https://golang.org/pkg/html/#EscapeString not do this? |
Sorry, I sent you an incorrect example. My problem is with a escaped string that contains " ", in that case sanitize is removing then. I will edit the description and put a correct exemple. Thank you. |
I think... that it's fine, but that the console and text things display it weird. Nothing in my code explicitly touches a I've looked at the output of the example you've provided and initially it looks like they are converted to whitespace. But look closer, put the output into a good text editor and look at the whitespace (or select all whitespace that matches that in So bluemonday is doing precisely what the |
@heltonrlustosa you should use Golang's
Read more at You should close this issue. |
Hey.
We are using bluemonday library in a new project and in some cases i need to save the string with characthers entities( , <, >...). But, after sanitize some exemples we realise that the output don't have a non-breaking space enitity, for exemple.
Code exemple:
Do I forgot to add any policy?
Thank you.
The text was updated successfully, but these errors were encountered: