在标签中呈现html标记

时间:2018-05-02 15:19:11

标签: html

我想将标签中的body标签呈现为文本元素

<label for="message-text" class="col-form-label">
  <strong>Copy and paste this code in Google Tag Manager as custom html or paste this code before </body> tag on your website page(s).</strong>
</label>

但我怎么能这样做?

2 个答案:

答案 0 :(得分:4)

将此&lt;用于<&gt;

>

Full List

样本

&#13;
&#13;
<label for="message-text" class="col-form-label">
  <strong>Copy and paste this code in Google Tag Manager as custom html or paste this code before &lt;/body&gt; tag on your website page(s).</strong>
</label>
&#13;
&#13;
&#13;

答案 1 :(得分:0)

你不能这样做。您应该只有一个<body>标记,其中包含<head>元素之外的所有html以及<html>元素的直接后代

相关问题