* Thus wrote Greg Donald ([EMAIL PROTECTED]): > On Thursday 15 April 2004 12:32 pm, Curt Zirzow wrote: > > um.. preg_replace('/\s+/m', ' ', $html); > > > > <pre> > > btw, > > blindly removing space (even from html) isn't a wise > > thing todo. > > > > </pre> > > The function I posted only removes tabs, newlines, and carriage returns. It > does not remove space characters. Your example seems to be the dangerous > one.
ok, then: s/[\r\n\t]//m; either way, you're blindly removing white space, which *does* matter in certain cases. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php