Feeds:
文章
评论

Posts Tagged ‘escape’

HTML has many predefined entities, but XML has only five predefined entities:

  • & (& or “ampersand”)
  • &lt; (< or “less than”)
  • &gt; (> or “greater than”)
  • &apos; (‘ or “apostrophe”)
  • &quot; (” or “quotation mark”)

“& #160;” is the decimal form of “& nbsp;” which represents a “Non-Breaking Space” in HTML/XHTML, whilst “& #xA0;” is the hexadecimal form.
“& #160;”  or “& #xA0;” definitely works in both HTML and XML. 

Ref:

Read Full Post »