Hi all,

I'm trying to load XML content using jQuery's $.ajax. In this XML file
there are some HTML tags included such as strong, br, and ul.

However when the content being append to HTML it seems that those HTML
tags has been stripped out. Is there anyway that I can append the XML
content with those HTML tags as well?

Sample of my script:

 $.ajax({
            type: "GET",
            url: "content.xml",
            dataType: "xml",
            success: function(xml) {
                $(xml).find('input').each(function() {
                      var content = $(this).find('content').contents
();
                      $('<div></div>').html(content).appendTo
('#content');
                });
            }
        });

Thanks in advanced for your helps.

Reply via email to