Results 1 to 2 of 2

Thread: AJAX - Pass in HTML Tags

  1. #1
    Join Date
    Apr 2008
    Posts
    151

    AJAX - Pass in HTML Tags

    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:
    Code:
    <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?

  2. #2
    Join Date
    Sep 2011
    Location
    London, UK
    Posts
    60
    Use CDATA
    HTML Code:
    <product>
    	<description><![CDATA[This product was inspired by <a href="jason.html">Jason</a>]]></description>
    </product>

Similar Threads

  1. HTML div Tags
    By Nesa in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 26 Jun 2010, 05:06 PM
  2. (help) Webstandard - creating new html tags
    By Legolax in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 13 Nov 2009, 01:30 PM
  3. What are HTML tags?
    By gilbertsavier in forum Tutorials
    Replies: 1
    Last Post: 09 Sep 2009, 10:25 AM
  4. Help reg html tags and JS events.
    By mnr_bujji in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 19 Apr 2007, 12:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •