title: Nokogiri should not include DOCTYPE
body: <p>I am trying to produce a partial HTML document using Nokogiri, e.g. something along the lines of:</p>
  
  <pre><code>html_content = Nokogiri::HTML::Builder.new() do |doc|
    # producing document here, redacted for brevity
  end.to_html
  </code></pre>
  
  <p>This works well enough, except for a little catch: data will later be dispatched to a remote Drupal-powered server and rendered as part of a page and thus should <em>not</em> contain the initial <code>&lt;!DOCTYPE html ...&gt;</code> declaration.</p>
  
  <p>How would I go about convincing Nokogiri not to produce the <code>DOCTYPE</code> tag? Or is Nokogiri's HTML builder the wrong way to go about that?</p>
  
  <p>Thanks in advance. </p>