title: Minify HTML/PHP
body: <p>I'm using gzip to compress my html/php files along with js/css/etc. This reduces the payload quite nicely but I also want to 'minify' my markup of both .html and .php pages. Ideally I'd like to control this from a .htaccess file (where I also do the gzipping) rather than the having to include php to each file.</p>
  
  <p>I'd like the output to be like that of <a href="http://google.com" rel="noreferrer">http://google.com</a> or <a href="http://www.w3-edge.com/wordpress-plugins/w3-total-cache/" rel="noreferrer">http://www.w3-edge.com/wordpress-plugins/w3-total-cache/</a> and <a href="http://css-tricks.com" rel="noreferrer">http://css-tricks.com</a> (both produced by W3 Total Cache plugin for WordPress).</p>
  
  <p>Can anyone recommend a good way to do this.</p>