清除文本中的HTML标签
`
var text = '<div style="color:red">我是标签</div>'
text = text.replace(/<[^>]+>/g,"");
console.log("text = "+text);//text = 我是标签
`
`
var text = '<div style="color:red">我是标签</div>'
text = text.replace(/<[^>]+>/g,"");
console.log("text = "+text);//text = 我是标签
`