title: How to remove whole HTML, HEAD tags and BODY tag from string with HTML using JavaScript?
body: <p>I have a template file that is called myWebsite.html. It contains everything that HTML template needs to have. So it has HTML, HEAD and BODY tags. I want to load it with JavaScript and put into one of divs on the site. So i don't want to have the HTML, HEAD and BODY tags. How to do this?</p>
  
  <p>This is a prototype of what i need to have:</p>
  
  <pre><code>$val = getData('myWebsite.html');
  $val = removeHTMLHEADBODYTAGS($val); //remove these tags with everything insite, also remove the body tag but leave the contents in the body tag. Also remove the end tags of body and html - HOW TO DO THIS?
  div.innerHTML = $val;
  </code></pre>
  
  <p>I want to do this in pure JavaScript = NO jQUERY</p>