VIEW
<view class="richText"> <rich-text nodes="{{richTextHTML}}" bindtap="tap"></rich-text> </view>
JS
onShow: function () { var self = this; self.data.richTextHTML = self.data.richTextHTML.replace(/<img/g, '<img style="100%;height:auto;display:block"') .replace(/em;/g,'rpx;') .replace(/<section/g, '<div').replace(//section>/g, '/div>'); self.setData({ richTextHTML: self.data.richTextHTML }) },
section 目前已支持;