JSFiddle - React, Tailwind, and code Playground

JavaScript

var htmlPage = `
<html>
<div>
testing but not required
</div>
  <div id="container">
    <p>
     i want to pull this whole block from parent 
    </p>
    <p>
      test 2
    </p>
  </div>

</html>`;
console.log(htmlPage);
console.log(htmlPage.getElementById("container"))
console.log(document.getElementById("container"))