在 html 内写入 html 标签
Writing html tags inside html
我正在写一篇博客,我需要在其中解释 HTML 标签。但是,我正在使用 HTML 来制作博客,并且需要离开 html 将 html 写在 html 中。我正在使用 prism.js 来提供 html 语法高亮显示
<pre class="language-html"> <script src="node_modules/three/build/three.min.js"></script</pre>
将 < 替换为 <
并将 > 替换为 >
示例:
<h1>This is a normal html element!</h1>
<h1>This is not!</h1>
我正在写一篇博客,我需要在其中解释 HTML 标签。但是,我正在使用 HTML 来制作博客,并且需要离开 html 将 html 写在 html 中。我正在使用 prism.js 来提供 html 语法高亮显示
<pre class="language-html"> <script src="node_modules/three/build/three.min.js"></script</pre>
将 < 替换为 <
并将 > 替换为 >
示例:
<h1>This is a normal html element!</h1>
<h1>This is not!</h1>