XML特殊字符处理

StringEscapeUtils.escapeXml("xxx");//转义特殊字符

以下5个字符为需要进行转义的字符

 字符  转义后 编码 
 & & &#38 
 ' '  &#39 
 " "  &#34 
 > >  &#62 
 < &lt;  &#60 

原文地址:https://www.cnblogs.com/penghq/p/13631231.html