public static String toHtmlEntity(String c){
if(c!=null&&c.length()>0){
String temp="";
for(int i=0;i<c.length();i++){
temp=temp+"&#"+(int)c.charAt(i)+";";
}
return temp;
}
return "";
}
把任意字符转成浏览器能够识别的特殊符号,遇到 "/"等特别好用