多个空格实现
<text decode='true'> </text>
后台读取的html代码片段样式显示
页面代码
<block><rich-textnodes="{{htmlSnip}}"></rich-text></block>
js
const htmlSnip_=`<div class="div_class">
<h1>Title</h1>
<p class="p">
Life is <i>like</i> a box of
<b> chocolates</b>.
</p>
</div>`
data:{
htmlSnip:htmlSnip_
}