Encoding Ampersands

October 9th, 2009

Here’s the W3C recommendation on encoding ampersands:

Authors should use "&" (ASCII decimal 38) instead of “&” to avoid confusion with the beginning of a character reference (entity reference open delimiter). Authors should also use "&" in attribute values since character references are allowed within CDATA attribute values.

From HTML Document Representation.

Leave a Reply