Sunday, April 11, 2010

[Java] help, how to remove html tags from j2me string

 

hi all,
i am developing j2me application , and i am now facing a problem
i have a text stored on a string, this text filled with html tags,
i want to extract the text part from this string?
example1:
<description><![CDATA[<p><a href="http://www.msnbc.msn.com/id/36325154/ns/us_news-faith/"><img align="left" border="0"
src="http://msnbcmedia.msn.com/j/MSNBC/Components/Photo/2010/April/100408/100409-ratzinger-signature.thumb.jpg" alt="A 1985 letter signed by then-Cardinal Joseph Ratzinger, then-head
of the Vatican's Congregation for the Doctrine of the Faith, indicates
he resisted defrocking a California priest who had a record of sexually
molesting children." style="margin:0 5px 5px 0" /></a>Church
correspondence shows that the future Pope Benedict XVI resisted pleas in the 1980s to defrock a California priest with a record of sexually
molesting children.</p><br clear="all"
/>]]></description>
i want to extract the part with red color

note: the html tags are not the same; each example may have a different tags

can any one help?

OmarH. Desoki
Software Developer

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
Visit http://aiaiai.com or http://jgame.org for more groups to join.
Java Official Group is created for the following topics: Java 2 Enterprise Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME, XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
Whoever posts spam / ads / job related message will be BANNED IMMEDIATELY
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.


Welcome to Mom Connection! Share stories, news and more with moms like you.


Hobbies & Activities Zone: Find others who share your passions! Explore new interests.

.

__,_._,___

No comments:

Post a Comment