I have descriptions being displayed within an XML document and then loading it into an application with jQuery.
When I try to use ‘&’ it breaks the code from loading. I’ve also tried
&
and it doesn’t work either.
Is there a work around that will let me contain ‘&’ symbols within my XML?
edit: Structure is…
<picture title="Name" description="A picture of Adam & Eve"></picture>
You can use
&. The xml parser treats&as the start of a character entity…and&by itself is not a valid character entity.