What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

This question is related to Inconsistent handling of not-encoded URL in preview.
But this time the illegal character is an &, where a difference between the preview and the post still exists.

Please compare this broken link right here and on the preview window of an edit where it is handled (in-)correctly.

share|improve this question
    
Do you have a link for this specific case? –  Grant Thomas Oct 12 '11 at 8:50
    

2 Answers 2

up vote 3 down vote accepted

The check in the server-side Markdown version whether a &... sequence should be considered an HTML entity or not (in the latter case, the & is converted to &) had a little scoping bug in the regular expression (a trailing semicolon wasn't required in all cases).

Fixed in the next build. Thanks!

share|improve this answer

&#9886223 is being transformed into that character by your browser. SO actually renders the following HTML:

<a href="https://forums.oracle.com/forums/thread.jspa?messageID=9886223&#9886223" rel="nofollow">broken link</a>

This happens because strings in the &#... format are XML entities.

A difference between the preview and the post exists probably because JS used by the previewer is converting & into &amp;.

share|improve this answer
    
Yes, I don't expect the link to work. But it shouldn't work in the edit pane, too. Users get confused if their link is working in the preview, but later in the post it isn't. –  tanascius Oct 12 '11 at 8:59
    
Thanks for the explanation of the conversion in the preview +1. But for me it is still a bug (in the preview). –  tanascius Oct 12 '11 at 9:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .