日期:2014-05-17  浏览次数:20539 次

js删除替换html标签 js删除替换空白换行符
替换标签:
str.replace(/(<(.[^>]*)>)|(&nbsp;)/g,"")

替换空白:
str.replace(/(^\s*)|(\s*$)/g, "")