去掉标签方法

// 只获得文字去掉标签
function removeTAG(str) {
    return str.replace(/<[^>]+>/g, "");
}
原文地址:https://www.cnblogs.com/Allofus/p/15062275.html