2013年6月20日
摘要: Java 中能將 html 編碼正確轉換的套件: org.apache.commons.lang.StringEscapeUtils。String source = "The less than sign (<) and ampersand (&) must be escaped before using them in HTML";String escaped = escapeHtml(source); //转义System.out.println(escaped);source = "{&quot;zbjson&quot;:{&a 阅读全文
posted @ 2013-06-20 14:02 janehlp 阅读(1454) 评论(0) 推荐(0) 编辑