项目中有很多地方需要解析后台填写的富文本内容,小程序提供了富文本解析的组件 rich-text ,但是有很多限制。(https://developers.weixin.qq.com/miniprogram/dev/component/rich-text.html)
所以找到了wxParse插件解析html
使用方法:
1.在github下载 (https://github.com/icindy/wxParse/tree/master/wxParse)
2.复制文件到小程序中
项目中有很多地方需要解析后台填写的富文本内容,小程序提供了富文本解析的组件 rich-text ,但是有很多限制。(https://developers.weixin.qq.com/miniprogram/dev/component/rich-text.html)
所以找到了wxParse插件解析html
使用方法:
1.在github下载 (https://github.com/icindy/wxParse/tree/master/wxParse)
2.复制文件到小程序中