**

去除字符串中的html代码

const removehtml = (str = ‘’) => str.replace(/<[/!][^<>]>/ig, ‘’)
console.log(removehtml(‘

哈哈哈哈<呵呵呵

’))
// 哈哈哈哈<呵呵呵 去除字符串中的html代码

相关文章: