开发者

Converting html tag into text in android

开发者 https://www.devze.com 2023-04-12 12:01 出处:网络
I am developing android app. In my app i retrieve the data from the database which is stored in the html format. For converting the html code into plain text i use HTML.fromHtml(String开发者_StackOv

I am developing android app.

In my app i retrieve the data from the database which is stored in the html format. For converting the html code into plain text i use HTML.fromHtml(String开发者_StackOverflow) . It convert the html code but it to convert <font> color="######">some String</font>.

Please help me if any one have any idea.

Thank you in advance.


Html.fromHtml(String) supports only few tags.
Check here,
http://commonsware.com/blog/Android/2010/05/26/html-tags-supported-by-textview.html

0

精彩评论

暂无评论...
验证码 换一张
取 消