1. 场景
小程序中, 从后台请求回来的数据, 是带标签的, 应该是富文本自动生成的
2. 目的
去掉标签
3. 方法
(1) 原先的代码:
<text class="" nodes="{{htInfo.forum.content}}"> </text>
(2)
修改为:
<rich-text class="" nodes="{{htInfo.forum.content}}"> </rich-text>