Hi,

I'm using $.ajax with a dataType of xml.  The XML document I'm getting
has a <content> node that contains a bunch of encoded HTML.  Sample:

<content>&lt;p&gt;&lt;a href=&quot;

When I alert the text contained within the <content> node:

alert(data.find('content').text());

I can see the above encoded content as formatted HTML:

<p><a href="

I realize that the text() function is returning text, and not the
nodes within.  How can I return the nodes within, either as a jQuery
object or the DOM nodes themselves, rather than the text, so I can
actually parse them?

When I remove the .text() function from the above, ala:

data.find('content p');

I get Undefined.  I've tried all kinds of selectors, and nothing
works.

Finally data.find('content); returns object Object.

Thanks,
Jeff

Reply via email to