function htmlEncode(text){ return text.replace(/&/g,'&').replace(/\"/g,'"').replace(/</g,'<').replace(/>/g,'>'); }
js中特殊转换字符为html标签
猜你喜欢
转载自www.cnblogs.com/nizuimeiabc1/p/8946862.html
今日推荐
周排行