HTMl over XML to jquery? -


I have generated my XML file, in which a row looks like this, which includes HTML;

  & lt; Status & gt; & Lt; Span class = 'disapproved' & gt; Rejected & lt; / Span & gt; & Lt; / Status & gt;   

Now in my Ajax request I have this line to draw content;

  var status = $ offer.find ("status"). Text ();   

That works fine, but only pulls the disallowed text from XML.

Am I guessing what to do with the text () part?

How do I drag html?

Edit:

  $ (data) .fund ('Notification'). Each (function () {var $ notification = $ (this); var message = $ notification.find ("message"). Html (); notification + + ' ';   

I have jazzery, it works fine for an extraterrestrial function, I have outputed the XML to the console and everything is fine. I can see above that .text () has changed. Html (), but it does not show anything except ...

Use .html () .text () .

.text () Remove only text without HTML code.
. / P>

Comments