icindy / wxParse

wxParse-微信小程序富文本解析自定义组件,支持HTML及markdown解析

Home Page:http://weappdev.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

在项目中HTML层级太深,导致解析出源码

zhou1992zg opened this issue · comments

commented

在原生小程序中,按照官网配置,解析HTML出现标签(源码)如下图:
image

以下是需要解析的HTML代码
<p><img src="https://xianmeiyuntu.oss-cn-shanghai.aliyuncs.com/images/2/merch/31/qCOJbzpIIX92BjPNy9wbXpWWj6NB9d.jpg" alt="微信图片_20190703133036.jpg" style="max-width: 100%"/> &nbsp; &nbsp;<img src="https://xianmeiyuntu.oss-cn-shanghai.aliyuncs.com/images/2/merch/31/a6nT41nxZ6ZALo41fGw62Z6Wh43T6X.jpg" alt="微信图片_20190703133100.jpg" style="max-width: 100%"/> &nbsp; &nbsp;<img src="https://xianmeiyuntu.oss-cn-shanghai.aliyuncs.com/images/2/merch/31/F3XVaMzKIzz9nk1XZ33ZPHNzy9ijNk.jpg" alt="微信图片_20190703133055.jpg" style="max-width: 100%"/> &nbsp; &nbsp;</p><p><br/></p>

不知道怎么回事