过滤html标签
let content={ name:'zs',summary:"<p style=\"text-align: center;\">居中<strong>加粗xxxx-111</strong></p>",title:'cess'}
console.log(content.summary.replace(/<[^>]+>|&[^>]+;/g, '').trim())
let content={ name:'zs',summary:"<p style=\"text-align: center;\">居中<strong>加粗xxxx-111</strong></p>",title:'cess'}
console.log(content.summary.replace(/<[^>]+>|&[^>]+;/g, '').trim())