Use CDATA
HTML Code:<product> <description><![CDATA[This product was inspired by <a href="jason.html">Jason</a>]]></description> </product>
I am trying to create an AJAX website. The content that will be updated is text description of the product. I am wondering how would I be able to add HTML tags within the content of my XML?
For example, ProductA.XML:
To be clear, I am using AJAX to retrieve XML documents. The XML will be formatted via XSL. Is this the correct format?Code:<product> <description>This product was inspired by <a href="jason.html">Jason</a></description> </product>
Use CDATA
HTML Code:<product> <description><![CDATA[This product was inspired by <a href="jason.html">Jason</a>]]></description> </product>