Skip to content

Instantly share code, notes, and snippets.

@Amitesh
Created August 5, 2011 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Amitesh/1128275 to your computer and use it in GitHub Desktop.
Save Amitesh/1128275 to your computer and use it in GitHub Desktop.
Undefined entity   while XML parsing error in firefox
XML parsing does not support   entity.   is XHTML entity. If we parse the html or xml or html as xml then you get "Undefined entity" error in firefox error console. To make it working use unicode of   (non-breakibg space character)   or simply put space (" " or  ).
for example :
<div> &nbsp; hello I am going to break. If you are going to use xml parser :( </div>
Corrected as :
<div> &#160; hello I am going to break. If you are going to use xml parser :( </div>
@mikerissi
Copy link

mikerissi commented Mar 2, 2018

"Undefined entity" error in firefox error console. To make it working use unicode of   (non-breakibg space character)   or simply put space (" " or ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment