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.
You can do :
$output = ''. 'Hello'. '';
'. '
This way, $output won't contain any line jump.
$output
This should also work :
$output = preg_replace(array('/\r/', '/\n/'), '', $output);