function toTxt(str) {
var RexStr = /\<|\>|\&/g;
str = str.replace(RexStr, function(MatchStr) {
switch (MatchStr) {
case "<":
return "";
break;
case ">":
return "";
break;case "&":
return "";
break;
default:
break;
}
});
return str;
}
js正则过滤英文左右尖括号<>
最新推荐文章于 2023-03-22 17:25:25 发布