The live preview of the post editor breaks links that contains two quotes, one of them in the end:
[example](http://example.com?test=param"title")
While this is rendered on the server into the proper and expected
<a href="http://example.com?test=param"title"">example</a>
the dynamic preview renders it into
<a href="http://example.com?test=param" title="title">example</a>
I would expect this to only happen when there is whitespace between the link title and the url, as in
[example](http://example.com?test=param "title")
"x"
in the SO search, it takes me tohttp://stackoverflow.com/search?q="x"
nothttp://stackoverflow.com/search?q=%22x%22
:-( Btw, isn't the quote mark unsafe only when used as a delimiter?foo "BAR"
:https://meta.stackoverflow.com/search?q=foo "bar"
. If we don't escape"
, why we should escape space.+
, no problem there :-) And I don't even want"
to be escaped to%22
, I just want it to (not) be treated as a title attribute delimiter in the same way as the serverside markdown parser does. The bug is about consistent behaviour, not the lack of escaping.+
, why is quotation mark not encoded in%22
? This may be true for your specific browser, but we need to think about all variations. So the question is, which parser does the right job? Imho it is the client side one.