title: Get only innerHTML from website?
body: <p>So I have the following code to pull a snippet of HTML from a website.</p>
  
  <p>This works kind of, in the <code>parse.txt</code> file I can see <code>innerHTML</code> with exactly the HTML I want.</p>
  
  <p>However the HTML file has a lot more in it, it has all the headers and footers, this isn't displayed in the <code>innerHTML</code> object in the text file.</p>
  
  <p>All I want to do is have just that object ( inner HTML ) saved in the HTML file.</p>
  
  <pre><code>$ie = New-Object -com InternetExplorer.Application
  $ie.silent = $false
  $ie.navigate2("www.website.com/job1")
  $ie.Visible = $true
  while($ie.busy) {start-sleep 1}
  
  # grab the table html
  $ie.document.IHTMLDocument3_getElementsByTagName("div") | Where{ $_.className -eq 'job-template__wrapper' } | Out-file "C:\Users\user\Desktop\Parse.txt"
  $ie.Document.body.innerHTML  | Out-file "C:\Users\user\Desktop\Parse.html"
  
  $ie.quit()
  </code></pre>