** 去除字符串中的html代码 const removehtml = (str = ‘’) => str.replace(/<[/!][^<>]>/ig, ‘’) console.log(removehtml(‘ 哈哈哈哈<呵呵呵’)) // 哈哈哈哈<呵呵呵 相关文章: