js提取富文本文字字符串内容
let str = "<p>我是内容</p>" let regx = /<\/?[a-zA-Z]+(\s+[a-zA-Z]+=".*")*>/g; str = str.replaceAll(regx,'') console.log(str) // 我是内容
let str = "<p>我是内容</p>" let regx = /<\/?[a-zA-Z]+(\s+[a-zA-Z]+=".*")*>/g; str = str.replaceAll(regx,'') console.log(str) // 我是内容