title: How to remove blank lines from HTML with HTMLAgilityPack?
body: <p>I have a HTML document that contains lots of needless blank lines which I'd like to remove. Here's a sample of the HTML:</p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
  
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;h1&gt;Heading&lt;/h1&gt;
  
  &lt;p&gt;Testing
  </code></pre>
  
  <p>I've tried the following code but it removed every newline, I just want to remove the ones that are blank lines.</p>
  
  <pre><code>static string RemoveLineReturns(string html)
      {
          html = html.Replace(Environment.NewLine, "");
          return html;
      }
  </code></pre>
  
  <p>Any idea how to do this with HTMLAgilityPack?
  Thanks,
  J.</p>