Java转义形如nbsp;的HTML编码

需要引用一个maven

<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.5</version>
</dependency>

方法为:

StringEscapeUtils.unescapeHtml3(URLDecoder.decode(data,"utf-8"))
上一篇:获取每周的周一


下一篇:poj 3740 Easy Finding 精确匹配