Sitemorse - building web confidence

Follow us on Twitter
LOG IN
We guarantee to make a difference ... or your money back

Knowledge base


Code quality Diagnostics - file.html.unknownentity: Unknown entity name

Standards:

Description:

'Entities' are formal references to specific characters. They are usually employed when use of the literal character is restricted or impractical.

For example, the Latin capital letter C with a cedilla (Ç) is represented by &amp;#199;</code> or <code>&amp;Ccedil;.

Entities are introduced with the ampersand (&) character followed by a prescribed set of characters. HTML defines a specific set of named entities which may be used.

This diagnostic is often triggered by an attempt to use a literal ampersand without encoding it as &amp;amp;, especially in URLs.

Example:

Incorrect:

&lt;a href="index.cgi?letter=A&amp;lang=en"&gt;

Correct:

&lt;a href="index.cgi?letter=A&amp;amp;lang=en"&gt;