title: javascript create element with array
body: <p>I get a array from my database and i m trying to create a element but it's not working. this is my simplify code</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>var objecthtml = {
  
   id : 1,
   html: '&lt;div&gt; &lt;/div&gt;',
   css: 'colonne'
  }
  
  console.log(objecthtml.html);
  console.log(objecthtml);
  
  var myArray = [objecthtml];
  console.log(myArray);
  
  let block =  document.createElement(objecthtml.html);</code></pre>
  </div>
  </div>
  </p>
  
  <p>this is the error message : </p>
  
  <blockquote>
    <p>InvalidCharacterError: String contains an invalid character</p>
  </blockquote>