rss parsing using dom, html format tags
i have to parse a RSS开发者_运维知识库 feed and display the same in android. i am using a DOM parser. i am able to parse all the tag except for the tag that has html formatting tags. for example
<description>
<p><span style="font-family: arial, geneva, sans-serif; font-size: 11px;">
<p style="font-family: Arial, Helvetica, sans-serif; max-width: 600px; margin-top: 8px; margin-right: 0px; margin-bottom: 8px; margi
<strong>WILL YOUR KIDS LOVE ROCK OF AGES AS MUCH AS YOU WILL?</strong> We think they will have a great time, but you should know that he age of 14.</span></p>
</description>
Could some one please guide me how do I get the unformatted text content from that tag . Also, changing the RSS feed is not an option...
thanks
You won't be able to use the DOM parser, and really shouldn't be either. Use the SAXParser
class instead, check out my answer here with the linked tutorial.
Try this its working for me..
Html.fromHtml("value")
精彩评论