富文本的解析

105 阅读1分钟

后台上传富文本拿到前台解析 注意报错 检查返回的img标签开头有没有空格 富文本上传至后端 拿到返回的数据解析到小程序

//富文本标签
<QuillEditor
     v-model:content="form.content"
     content-type="html"
     theme="snow"
     style="width: 100%; height: 400px"
     toolbar="full"
/>

//解析到小程序
<rich-text class="con" :nodes="form.content"></rich-text>
//解析到H5
<view class="" v-html="form.content"></view>