android转换字符串中特殊的HTML标签字符

xiaoxiao2021-02-28  102

解决办法:

1.依赖库文件

commons-lang-2.4.jar

云盘下载地址:http://pan.baidu.com/s/1kUCrnOb

2.在需要转换的地方加下面的代码

// 转换特殊的 HTML 标签字符 String result= StringEscapeUtils. unescapeHtml (response); 例: String sss=StringEscapeUtils.unescapeHtml("黄山路—望江西路,780×16");

转载请注明原文地址: https://www.6miu.com/read-67990.html

最新回复(0)