rams
rams

Reputation: 123

how to display html content in listview in android?

I am developing the android application in whch i need to display html content of webpages into my list view. I have used simple adapter to display web content. I am able to retriveing the contents of webpage but problem is it is showing html tag along with content. If you have any solution please reply.

Thanks in advance

Upvotes: 2

Views: 471

Answers (1)

Pratik Dasa
Pratik Dasa

Reputation: 7439

Try with below line:

txtHtmlData.setText(Html.fromHtml(YOUR HTML CONTENT)).toString();

Upvotes: 5

Related Questions