vue编辑器添加的内容如何以html的形式显示?
How to display the content added using vue editor in the form of html?
我使用 vue-editor 添加了数据,当我尝试显示它时显示为
<p class="ql-align-justify">A total of 51 plant species were recorded in the sampled area (0.16 ha). The average GBH and height recorded were 75.41 cm and 15.59 metres respectively. Average tree density was 330 trees per ha. <em>Tectona grandis, Shorea robusta, Cassia fistula, Ehretia laevis, Mallatus phillipensis </em>and <em>Trewia nudiflora </em>were the dominant tree species in the corridor. The ground cover was dominated by shrubs (64.87 %), herbs (29.93%) and grasses (3.2%). The remaining area was barren ground.</p><p class="ql-align-justify"><br></p><p><br></p>
html 标签无效。那么我怎样才能以 html 的形式格式化它呢?请帮我解决一下。
我正在获取 json 格式的数据。是“”导致问题吗?请帮我解决一下
使用v-html
directive从html字符串输出真正的html;假设 content
是从 vue-editor
添加的内容:
<span v-html="content"></span>
我使用 vue-editor 添加了数据,当我尝试显示它时显示为
<p class="ql-align-justify">A total of 51 plant species were recorded in the sampled area (0.16 ha). The average GBH and height recorded were 75.41 cm and 15.59 metres respectively. Average tree density was 330 trees per ha. <em>Tectona grandis, Shorea robusta, Cassia fistula, Ehretia laevis, Mallatus phillipensis </em>and <em>Trewia nudiflora </em>were the dominant tree species in the corridor. The ground cover was dominated by shrubs (64.87 %), herbs (29.93%) and grasses (3.2%). The remaining area was barren ground.</p><p class="ql-align-justify"><br></p><p><br></p>
html 标签无效。那么我怎样才能以 html 的形式格式化它呢?请帮我解决一下。
我正在获取 json 格式的数据。是“”导致问题吗?请帮我解决一下
使用v-html
directive从html字符串输出真正的html;假设 content
是从 vue-editor
添加的内容:
<span v-html="content"></span>