Well I know obfuscation is a bad idea. But I want all of my html code to come in one long single line. All the html tags are generated through PHP, so I think its possible.
Worked for me:
$output = str_replace(array("\r\n", "\r", "\n"), "", $output);