I'm working to comply with my required 37 pieces of flair, but notice there have been some previous questions about escaping:

Seems if it isn't too much, it's too little...there's no escaping on the ampersand right now:

no escaping of ampersand in flair

If you feed the following HTML into the W3C validator (bracketed for HTML5):

<!DOCTYPE html>
<a href="http://stackoverflow.com/users/211160/hostilefork">
<img src="http://stackoverflow.com/users/flair/211160.png" width="208" height="58" alt="profile for HostileFork at Stack Overflow, Q&A for professional and enthusiast programmers" title="profile for HostileFork at Stack Overflow, Q&A for professional and enthusiast programmers">

You get the error:

& did not start a character reference. (& probably should have been escaped as &amp;.)

  • You posted wrong screenshot. There's nothing wrong in it. Feb 3, 2014 at 9:54
  • @ShadowWizard Copying and pasting Q&A into a page directly makes the W3C validator unhappy. The previous complaints were about Q&amp;ampA. I'm assuming the correct answer is supposed to be Q&amp;A. Feb 3, 2014 at 10:02
  • OK, it's not clear from your question at all. Better link to whatwg.org/specs/web-apps/current-work/multipage/… and quoute relevant part, about ambiguous ampersand. Feb 3, 2014 at 10:09
  • @ShadowWizard Well, I just sort of operate on the "ampersands always escaped" assumption in raw HTML. But I added a sample that the W3C validator chokes on. I'm not sure it would fit the definition of an ambiguous ampersand, as that suggests it's for when an entity ends with a semicolon but can't be identified as one of these... so for instance &asdfieryasdf;. Feb 3, 2014 at 10:25
  • Good edit, cheers! I believe space also ends an entity so it's looking for &A which is not valid. :) Feb 3, 2014 at 10:26

1 Answer 1


Fixed in next build (2013.2.3.1914 meta, 2013.2.3.1344 sites)


You must log in to answer this question.

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