Hello Samuh,

You can use the following package to "sanitize" your HTML text:
http://htmlentities.sourceforge.net/.

There are functions in this package to "unhtmlize" texts.

Just add the package as a library in your Android project, and use it
in your code.

Regards,
Stéphane

On Dec 4, 10:09 am, Samuh <[email protected]> wrote:
> thanks again for your reply Bibek!
>
> > True, May be you could use only one WebView, get all the 20 strings,
> > add some html formatting yourself, and display. But, if really really
> > want to display it on a ListView, then, it's difficult. You have to
> > change/replace those HTML tags manually to something else.
>
> A naive implementation could be to use a regex that identifies and
> replaces occurences of
> {<.>,</.>,&....;} in the string with ''. It seems too simple though
> and I doubt if it will work; will see.
>
> > Isn't there any way, where you can specify that you need only text
> > content? I haven't worked much on RSS. :(
>
> Nah, that is beyond my scope.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to