Skip to content

Instantly share code, notes, and snippets.

@mythril
Last active August 29, 2015 14:19
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 mythril/1ff122aee9e5bc9d5abc to your computer and use it in GitHub Desktop.
Save mythril/1ff122aee9e5bc9d5abc to your computer and use it in GitHub Desktop.
![XML encoding gone wild](http://i.imgur.com/XBujjUm.png)
This was caused by a product having a title with HTML in it, specifically the <title> tag,
here is the offending snippet:
```xml
<item>
<title>Edward 1</g:quantity>
<g:availability>in stock</g:availability>
<g:brand>Safari Limited</g:brand>
<g:mpn>820229</g:mpn>
<g:upc>095866820206</g:upc>
<g:product_type>Toys &amp; Games &gt; Pretend Play</g:product_type>
<g:product_type>Toys &amp; Games &gt; Science &amp; Nature</g:product_type>
<g:product_type>Toys &amp; Games &gt; Supplies</g:product_type>
<g:product_type>Toys &amp; Games &gt; Collectibles</g:product_type>
</item>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment