过滤HTML标签

this.pharmacyList[i].descript=this.pharmacyList[i].descript.replace(/<[^>]+>|&[^>]+;/g,"").trim().substring(0, 60);

过滤所有html标签还有特殊符号。

只有O和1的世界是简单的!
原文地址:https://www.cnblogs.com/hinux/p/10126608.html