过滤HTML标签

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

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

posted @ 2018-12-16 15:00  沧海一粟95  阅读(155)  评论(0编辑  收藏  举报