how to remove HTML tag inside the XML tag after parsing RSS?

Exteftpeast

New Member
Hi every one I have a parsing RSS question. Current, I am able to parse the RSS XML on the news web, and display it in the UITableViewCell. I parse the description tag which is:\[code\]<description><![CDATA[ <a href="http://vnexpress.net/gl/xa-hoi/2012/05/thuy-dien-song-tranh-de-bi-lo-sut-dat-1/"><img src="http://vnexpress.net/Files/Subject/3b/bd/66/e0/sat-lo-dat-Song-Tranh-2.jpg"></a>this is new<BR />></description>\[/code\]The problem now that I how can I just get out the text inside this tag? Currently it display everything inside the description tag, which is:\[code\]<![CDATA[ <a href="http://vnexpress.net/gl/xa-hoi/2012/05/thuy-dien-song-tranh-de-bi-lo-sut-dat-1/"><img src="http://vnexpress.net/Files/Subject/3b/bd/66/e0/sat-lo-dat-Song-Tranh-2.jpg"></a>this is new<BR />>\[/code\]I just want the plain text to be displayed:\[code\]this is new\[/code\]And I also wanna get the image in this description tag so I can display it:\[code\]<img src="http://vnexpress.net/Files/Subject/3b/bd/66/e0/sat-lo-dat-Song-Tranh-2.jpg">\[/code\]. Please tell me how? Thanks in advance.
 
Back
Top