Re: PHP editor
| From: | Curt Zirzow | Date: | Thu, 15 Apr 2004 17:57:31 +0000 |
| Subject: | Re: PHP editor | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183516@lists.php.net to get a copy of this message | ||
* Thus wrote Greg Donald (destiney@destiney.com):
> 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."