title: Removing meta generator MSHTML
body: <p>When I read the contents of the HTML page generated using <code>TWebBrowser</code> (design mode) for example using this code:</p>
  
  <pre class="lang-pascal prettyprint-override"><code>function GetHTML(w: TWebBrowser): String;
  Var
    e: IHTMLElement;
  begin
    Result := '';
    if Assigned(w.Document) then
    begin
       e := (w.Document as IHTMLDocument2).body;
  
       while e.parentElement &lt;&gt; nil do
       begin
         e := e.parentElement;
       end;
  
       Result := e.outerHTML;
    end;
  end;
  </code></pre>
  
  <p>It adds the META tag just before the <code>&lt;/HEAD&gt;</code>, for example:</p>
  
  <p><code>&lt;META content="MSHTML 6.00.2900.2180" name=GENERATOR&gt;</code></p>
  
  <p>or...</p>
  
  <p><code>&lt;META name=GENERATOR content="MSHTML 11.00.10570.1001"&gt;</code></p>
  
  <p>Is there a way to get rid of the tag when reading <code>outerHTML</code>?</p>
  
  <p>Or prevent MSHTML to generate it in the first place?</p>
  
  <p>Or some other method to get rid of it?</p>