文章出處
文章列表
String.prototype.toHtmlEncode = function() { var str = this; str=str.replace("&","&"); str=str.replace("<","<"); str=str.replace(">",">"); str=str.replace("'","'"); str=str.replace("\"","""); return str; }
用法
"".toHtmlEncode()
文章列表
全站熱搜