WordPress HTML Minify – functions.php
From http://fastwp.de/snippets/html-minify/