正则表达式替换字符串中的html标签

正则表达式替换字符串中的html标签

···
var newStr = str.replace(/<[^>]+>/g, '');
···

原文地址:https://www.cnblogs.com/frogblog/p/8547663.html