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. -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php