title: Parse String as HTML in JavaScript
body: <p>So, I have a textarea that users are supposed to type codes into.</p>
  
  <p>Ex: <code>&lt;div id="example"&gt;blar&lt;/div&gt;</code></p>
  
  <p>How can I evaluate what they enter in the textarea as HTML (as in the DOM) without:</p>
  
  <ul>
  <li>jQuery</li>
  <li>Having to create a new element</li>
  </ul>
  
  <p>For example:</p>
  
  <p>Code: <code>&lt;div id="ex"&gt;Blar&lt;/div&gt;</code></p>
  
  <p>My Function:</p>
  
  <pre><code>function parseCode(){
      var code = document.getElementById("code").value;
  }
  </code></pre>
  
  <p>I want to take the value and make it accessible (like <code>code.getElementsByTagName("div")[0].innerHTML</code>);</p>