I found out a strange bug while searching for some possible duplicates in the search field.

When seeing it in the search field, this question's preview becomes


while there is a lot of content inside the question.



Why is this happening? Can it be fixed?

  • 1
    Yes, looks like a bug. But actually you can see "answer?" in "Is it important to say “thanks” after getting correct answer?" – nicael Mar 21 '15 at 11:42
  • 1
    @nicael Whoops, didn't spot that. – 54D Mar 21 '15 at 11:43
  • 1
    Is it really so hard to add proper tag?? Really. It's rude to let others tag for you. – Shadow 10 Years Wizard Mar 21 '15 at 11:57
  • 1
    Argh I forgot again... – 54D Mar 21 '15 at 11:58
  • 5
    No. It's beyond forgetting. One? OK. Two? Still OK. Three? Still might be fine. But 14?? No. – Shadow 10 Years Wizard Mar 21 '15 at 11:59

This will be fixed in the next build.

The raw HTML we get back from the server looks like this:


 My question was edited by respectable Stack Overflow member. Only thing that was changed - removed &quot;<span class="highlight">Thank</span> <span class="highlight">you</span>!&quot; at the bottom of question.

 Is there any particular reason why should I not <span class="highlight">say</span> that?
   Possible Duplicate:
   Should &#39;Hi&#39;, &#39;thanks,&#39; taglines, and salutations be removed from posts?
   Thanking users who answered my question
   Is it important to <span class="highlight">say</span> “thanks” after getting correct &hellip; 

And we had some logic that said unescape the characters, replace the <span ... with bold text, and show the first 5 lines. In this case four of those lines were blank.

The correct way to do it, so that it matches the web is to actually render the HTML and then display the first 5 lines. This treats those four blank lines as a single space.

| improve this answer | |

You must log in to answer this question.

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