title: html get's rendered inside code element instead of a string
body: <p>I want to auto-generate a html-preview for my components, but my html gets rendered as a node instead of displaying a string...</p>
  <p>this is my simplified example</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const btns = document.querySelectorAll('.preview')
  const previewContainer = document.getElementById('previewContainer')
  
  const pre = document.createElement('pre')
  previewContainer.appendChild(pre)
  
  btns.forEach((btn)=&gt; {
    const code = document.createElement('code')
    pre.appendChild(code)
    code.innerHTML = btn.outerHTML
    console.log(typeof btn.outerHTML)
  })</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button class="preview"&gt;label1&lt;/button&gt;
  &lt;button class="preview"&gt;label2&lt;/button&gt;
  &lt;div id="previewContainer"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Have also created a <a href="https://codepen.io/destroy90210/pen/RwKrwqL?editors=1010" rel="nofollow noreferrer">codepen</a></p>