It looks like you're using an RSS feed given the xml format, so you probably want to use the CDATA sections anyways so that RSS readers don't get confused by the HTML tags.
Now, maybe I just don't understand exactly what you're trying to accomplish? Are you saying you want to just read the contents of the description field? cheers Michael Lawson Development Lead, Global Solutions, ibm.com Phone: 1-276-206-8393 E-mail: mjlaw...@us.ibm.com 'Whether one believes in a religion or not, and whether one believes in rebirth or not, there isn't anyone who doesn't appreciate kindness and compassion..' From: Seth <claudiu.dan...@gmail.com> To: "jQuery (English)" <jquery-en@googlegroups.com> Date: 08/12/2009 03:48 PM Subject: [jQuery] Re: html in xml tag Thank you Michael for your reply however wrapping the data intro <! [CDATA[]] don't work ... i have try that before i just did not mention it, if anybody has other ideas or some suggestions i will appreciate it, i'm sure somebody has done this before i just hope he is here on forum :D Thanks! On Aug 12, 6:59 pm, Michael Lawson <mjlaw...@us.ibm.com> wrote: > Try wrapping your html text in a CDATA section so that the xml parser > doesn't strip them out > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone: 1-276-206-8393 > E-mail: mjlaw...@us.ibm.com > > 'Whether one believes in a religion or not, > and whether one believes in rebirth or not, > there isn't anyone who doesn't appreciate kindness and compassion..' > > From: Seth <claudiu.dan...@gmail.com> > > To: "jQuery (English)" <jquery-en@googlegroups.com> > > Date: 08/12/2009 11:41 AM > > Subject: [jQuery] html in xml tag > > 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! > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload
<<inline: graycol.gif>>
<<inline: ecblank.gif>>