Basically I would like to decode a given Html document, and replace all special chars, such as " "
-> " "
, ">"
-> ">"
.
在里面NET我们可以使用HttpUtility.HtmlDecode
个.
Java中的等效函数是什么?
Basically I would like to decode a given Html document, and replace all special chars, such as " "
-> " "
, ">"
-> ">"
.
在里面NET我们可以使用HttpUtility.HtmlDecode
个.
Java中的等效函数是什么?
我已经使用Apache Commons StringEscapeUtils.unescapeHtml4()实现了以下目的:
取消转义包含实体的字符串 转义为包含 实际Unicode字符 与转义相对应.支架 HTML 4.0实体.