yes basicaly i want to read the content of description but to keep the formatting elements from html <b> <br> <p> etc
On Aug 12, 11:03 pm, Michael Lawson <mjlaw...@us.ibm.com> wrote: > Scratch that, my bad. On closer look its not RSS :) (its the first thing > that comes to mind when i see <item> followed by <description>) > > My previous question still stands though, are you just wanting to 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: Michael Lawson/Raleigh/Contr/i...@ibmus > > > To: jquery-en@googlegroups.com > > > Cc: "jQuery (English)" <jquery-en@googlegroups.com> > > > Date: 08/12/2009 04:01 PM > > > Subject: [jQuery] Re: html in xml tag > > > 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..' > > Inactive hide details for Seth ---08/12/2009 03:48:48 PM---Thank you > Michael for your reply however wrapping the data intro <!Seth ---08/12/2009 > 03:48:48 PM---Thank you Michael for your reply however wrapping the data > intro <! > > 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 > > > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload