使用apache-commons-lang3架构对HTML内容进行编码和反编码

	String a="<br>";
		
	String a_str=StringEscapeUtils.escapeHtml4(a);//编码
		
	System.out.println(a_str);

	String b_str=StringEscapeUtils.unescapeHtml4(a_str);//反编码
	System.out.println(b_str);

  

原文地址:https://www.cnblogs.com/max-hou/p/11077714.html