Is there a way to remove all white space from document?
Posted: Mon Jan 05, 2009 9:50 pm
how could I remove space in blank after ">" character?
sounds simple, I have tried:
But of course it just does not make it, since if there is more than one space after ">" it does not get replaced.
Same for:
In this other one if you have more than one line break inside the document those do not get replaced.
sounds simple, I have tried:
Code: Select all
<?php function callback($buffer) {$buffer = str_replace('> ', '>', $buffer); return $buffer;} ob_start("callback"); ?>Same for:
Code: Select all
<?php function callback($buffer) {$buffer = str_replace('>
', '>', $buffer); return $buffer;} ob_start("callback"); ?>