Hi guys, I have an XML file like this
<?xml version="1.0" encoding="utf-8"?> <data> <item> <name>Lorem ipsum</name> <description>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br /></description> <image>images/coal.jpg</image> </item> </data> ......................... etc now on <description> tag i need to enter some formating elements like <br> <p> <li> bold etc, if i enter html elements this line "desc = $ (this).find("description").text();" will strip all my html code .. probably because of the .text() function at the end, my question is what function to try at the end because .html() is not working like this "desc = $(this).find("description").html();" is not working .. basically i need to be able to read the html elements too so i can display in the div that will display the info ... dose anybody know some jquery function that dose that ? Thanks!