* Thus wrote Chris Boget ([EMAIL PROTECTED]): > > function cleanFinalOutput($html){ > > $return = eregi_replace("\n", "", $html); > > $return = eregi_replace("\r", "", $return); > > return eregi_replace("\t", "", $return); > > } > > Not to be too pedantic, but you could probably reduce the above > to a single line function: > > function cleanFinalOutput($html){ > return eregi_replace("\n", "", eregi_replace("\r", "", eregi_replace("\t", > "", $html ))); > > }
um.. preg_replace('/\s+/m', ' ', $html); <pre> btw, blindly removing space (even from html) isn't a wise thing todo. </pre> Curt -- "I used to think I was pedantic, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php