1 import org.apache.commons.lang.StringEscapeUtils; 2 3 public class EscapeHtml { 4 5 /** 6 * @param args 7 */ 8 public static void main(String[] args) { 9 String aac = StringEscapeUtils.escapeHtml("啦啦啦"); 10 System.out.println(aac); 11 String aa = StringEscapeUtils.unescapeHtml(aac); 12 System.out.println(aa); 13 } 14 }