Smarty has a {strip} function:
{strip}
<table border='0'>
<tr>
<td>
Hello world
</td>
</tr>
</table>
{/strip}
Which outputs:
<table border='0'><tr><td>Hello world</td></tr></table>
I also want to do this in Zend (to reduce the amount of bites send on each request), without installing Smarty.
However, I don't want to add code to every Layout / .phtml file, so a frontcontroller plugin would be nice.