js 去除字符串中的html标签

1.去除字符串中的html标签
function removeHtmlTag(str) {
    return str.replace(/<[^>]+>/g, "");
}

记录一些js的小方法, 持续更新...

评论

暂无评论