title: How to use Class Minify_HTML
body: <p>How to use Class Minify_HTML... from "<a href="http://code.google.com/p/minify/source/browse/trunk/min/lib/Minify/HTML.php?r=275" rel="nofollow">http://code.google.com/p/minify/source/browse/trunk/min/lib/Minify/HTML.php?r=275</a>", in my index.php or all my project.</p>
  
  <p>Currently I use this:</p>
  
  <p>1.I have the following function:</p>
  
  <pre><code>function replace_tabs_newlines($content) {
      require_once $_SERVER["DOCUMENT_ROOT"] . "/min/lib/Minify/HTML.php";
      require_once $_SERVER["DOCUMENT_ROOT"] . "/min/lib/Minify/CSS.php";
      require_once $_SERVER["DOCUMENT_ROOT"] . "/min/lib/JSMin.php";
      $content = Minify_HTML::minify($content, array(
          "cssMinifier" =&gt; array("Minify_CSS", "minify"),
          "jsMinifier" =&gt; array("JSMin", "minify")
      ));
      return $content;
  }
  </code></pre>
  
  <p>2.Over the opening tag  <code>html</code>... </p>
  
  <p>I put: php ... <code>ob_start ('replace_tabs_newlines');</code></p>
  
  <p>3.and then under the closing tag <code>html</code></p>
  
  <p>I put: php .... <code>ob_end_flush ();</code></p>
  
  <p>//.......................................................</p>
  
  <p>Unfortunately my server returns an absolute blank page  ...</p>
  
  <p>Above this level, I have connection to  database and code to  activate gzip ...</p>