87,922
社区成员
发帖
与我相关
我的任务
分享
String.prototype.toHtmlEncode = function() {
var str = this;
str=str.replace("&","&");
str=str.replace("<","<");
str=str.replace(">",">");
str=str.replace("'","'");
str=str.replace("\"",""");
return str;
}
document.write(p.toHtmlEncode());