过滤字符串中的HMTL实体

sourceStr.replaceAll("&", "&").replaceAll("\"", """)
       .replaceAll("<","&lt;").replaceAll(">","&gt;");
 
相关文章
相关标签/搜索