-
Notifications
You must be signed in to change notification settings - Fork 63
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
whitespace truncated #4
Comments
Hi Gerard, this is definitely a bug! Thx for reporting! 👍 |
I'm trying to investigate the origin. for example :
returns
Here you can see it misses the " " between the b tags. |
I think this is the point of origin : https://github.com/mochi/mochiweb/blob/d024b4a5804fe4e0061c4ed2d1c52bdd168995e9/src/mochiweb_html.erl#L81 I'm really out of my comfort zone here though, but maybe we should forward this case to them, what do you think ? |
I investigated to that point as well and then ... went asleep. I concluded that since the But I am really outside my "comfort zone" here as well. My Erlang-Fu is weak. 😞 |
ok, something I just found :
first example, is with a regular space between and Maybe....regex replace spaces between a closing and opening tag with 's ? |
how about this : The only thing i do not understand is why the test fails even if both sides are the same ? Do you have an explanation for that ? |
I filed an issue with mochiweb: mochi/mochiweb#166 I'd suggest we wait until we know whether or not this is a bug. If it is not, we will have to find a solution 👍 |
@smeevil fixed it. Sorry this took so long, I somehow lost track of this issue. 😢 Version 1.0.0 contains the fix. |
Hi,
I noticed the following behaviour :
The sanitiser is eating whitespace if directly followed by an other whitelisted tag. I would expect the result to be :
Gerard.
The text was updated successfully, but these errors were encountered: