Jquery Xml .html() Instead Of .text() Is Not Displaying?
I can't seem to figure out this problem. I am trying to get xml to render html tags. The problem I am having using .text() will display but not recognize any html tags. If I use
Solution 1:
.html()
does not work with XML documents. You should wrap the HTML content in the XML file with <![CDATA[your code here]]>
.
Solution 2:
I once ran into this problem while working with some xslt stuff. Apparently in webkit and some IE versions you cannot parse html that does not comply to your doctype. As such as a node will not be available to jquery. HOWEVER, there is a solution you can make you element query by using the nodename attribute $('[nodeName=long]',xml)
Post a Comment for "Jquery Xml .html() Instead Of .text() Is Not Displaying?"