js 去除字符串中的html标签

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

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

相关文章
相关标签/搜索