Most of us are aware of how to escape characters in HTML, so that the browser doesn’t process them but still then we do come across instances where characters we have provided in the content is actually treated as code by the browsers. This is especially true when you are working with XML or XHTML ( for instance, your application is generating an XML file).
In XML there are five characters entity references ( greater than >, less than <, ampersand &,quotation ” and apostrophe ‘ ) that need to be escaped or the browser/parser doesn’t treat them as markup. In these instances you must use entity escape code rather than the characters.
Ampersand & &
Greater Than > >
Less Than < <
Quotation ” "
Apostrophe ‘ '
For a list of escape codes for XHTML please check this http://www.escapecodes.info/
Please note, the idea behind this tip was not to demonstrate the technique as much as it was to associate the concept “Entity Escape” with it.