【发布时间】:2013-11-08 13:47:13
【问题描述】:
如何将 html 的编码值保存到字符串帮助我我将 html 保存在字符串 htmldescription 中,但被编码为显示实际 html,请参阅我的这篇文章 html code change when get in json and save in string
当我使用此命令保存在 textview 中时,HTML 代码将发生变化,完美显示
mytext= (Html.fromHtml(htmldescription));
但我想保存在字符串中,我该怎么办?如何在字符串中保存编码的html(字符串)任何想法???
String htmldescription = school2.getJSONObject(0).getString("description");
mytext= (Html.fromHtml(htmldescription));
String coverthtml= mytext?????????????
【问题讨论】:
标签: android