除了strong、em、p、u标签,其他标签全部清除

str =  str.replace(/<(?!\/?strong|\/?em|\/?p|\/?u)[^<>]*>/ig,'')

 

相关文章: