js 去除字符串中的html標籤

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

記錄一些js的小方法, 持續更新...html

相關文章
相關標籤/搜索