I have a string from an RSS file after parsing.
String htmlString=
<p><img border="1" align="left" width="200" vspace="2" hspace="2" height="133" alt="Prime Minister Manmohan Singh will leave for Iran on August 28, 2012 to attend the Non-Aligned Movement summit, which will be preceded by crucial bilateral talks with Iran’s supreme leader Ayotollah Ali Khamenei and Iranian President Mahmoud Ahmadinejad." src="/tmdbuserfiles/manmohan ahmadi(3).jpg" />Prime Minister summit, which will be preceded by crucial bilateral talks with Iran’s supreme leader place at a time when the U.S. is pushing India to reduce engagement with Iran and implement sanctions imposed by some countries over its controversial nuclear programme.<br />
<br />
</p>
I have a requirement to display the text without any HTML tags and without HTML special characters from above htmlString on my LWUIT Form like:
Prime Minister ManmohanSingh will leave for Iran on August 28, 2012 to attend the Non-Aligned Movement summit, which will
be preceded by crucial bilateral talks with Iran supreme leader Ayotollah Ali Khamenei and Iranian etc...........?
It also helps to open the HttpConnection input stream with UTF-8 encoding like this :
Use this suite of String Utils to get clean and well formatted text. :