suggestion need
im using this php function to compress html and this works perfectly
do this function has any cons?

> <?php function sanitize_output($buffer) {
>     $search = array(
>         '/\>[^\S ]+/s', //strip whitespaces after tags, except space
>         '/[^\S ]+\</s', //strip whitespaces before tags, except space
>         '/(\s)+/s'  // shorten multiple whitespace sequences
>         );
>     $replace = array(
>         '>',
>         '<',
>         '\\1'
>         );   $buffer = preg_replace($search, $replace, $buffer);
>     return $buffer; } ob_start("sanitize_output"); ?>
suggestion need
===

im using this php function to compress html and this works perfectly
do this function has any cons?

> <?php function sanitize_output($buffer) {
>     $search = array(
>         '/\>[^\S ]+/s', //strip whitespaces after tags, except space
>         '/[^\S ]+\</s', //strip whitespaces before tags, except space
>         '/(\s)+/s'  // shorten multiple whitespace sequences
>         );
>     $replace = array(
>         '>',
>         '<',
>         '\\1'
>         );   $buffer = preg_replace($search, $replace, $buffer);
>     return $buffer; } ob_start("sanitize_output"); ?>