如何正确显示一部分html代码?
HTML代码:
<div>{{`<p>_html_data</p>`}}</div>
JavaScript代码:
var _html_data = `<section>
<h1 style="color: #5e9ca0;">
You can edit
<span style="color: #2b2301;">this demo</span> text!
</h1>
<h2 style="color: #2e6c80;">How to use the editor:</h2>
<p>
Paste your documents in the visual editor on the left or your HTML code in the source editor in the right.
<br>Edit any of the two areas and see the other changing in real time.
</p>
</section>`;