开发者

Convert html code into plain text

开发者 https://www.devze.com 2023-04-04 11:08 出处:网络
I am developing android application in which i want to convert html code in to plain text and display it in the editText. I use Jsoup.jar for that but it shrink the data. Like it just remove thetag.I

I am developing android application in which i want to convert html code in to plain text and display it in the editText. I use Jsoup.jar for that but it shrink the data. Like it just remove the tag.I will not got to the next line. Does any one has the solution to display html code in the plain text? Any help or suggestions ar开发者_C百科e accepted. Thank you.


Use Html.fromHtml(htmltext).

0

精彩评论

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