Re: \n and <br>
| From: | Brian V Bonini | Date: | Tue, 11 Nov 2003 20:39:13 +0000 |
| Subject: | Re: \n and <br> | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169202@lists.php.net to get a copy of this message | ||
On Tue, 2003-11-11 at 14:51, Marek Kilimajer wrote:
> Brian V Bonini wrote:
> > So just change it....
> >
> > $string = nl2br($content->page_content);
> > $string = eregi_replace("<br />", "<br>", $string);
> >
>
> Why not directly
> str_replace(array("\r\n","\r","\n"), '<br>',
> $content->page_content);
You say tomato I say.... ;-)