正则匹配去掉所有html标签

var a = "<span>999</span>"
a = a.replace(/<[^>]+>/g,' ')
console.log(a)
04-30 22:39