PDA

View Full Version : AJAX - Pass in HTML Tags



icu222much
17 Dec 2011, 01:42 PM
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:

<product>
<description>This product was inspired by <a href="jason.html">Jason</a></description>
</product>

To be clear, I am using AJAX to retrieve XML documents. The XML will be formatted via XSL. Is this the correct format?

hyperion
19 Dec 2011, 04:33 AM
Use CDATA


<product>
<description><![CDATA[This product was inspired by <a href="jason.html">Jason</a>]]></description>
</product>