过滤HTML标签

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

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

猜你喜欢

转载自www.cnblogs.com/hinux/p/10126608.html