Re: \n to <BR> Problem
| From: | Jacob Miller | Date: | Sat, 07 Sep 2002 01:40:44 +0000 |
| Subject: | Re: \n to <BR> Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115586@lists.php.net to get a copy of this message | ||
At 23:51 09/06/2002, you wrote:
I have a small problem in converting a plain text to html.<snip>
$newstr = ereg_replace ("\n", "<BR>", $newstr);try $newstr = ereg_replace("\n\r|\n|\r", "<BR>", $newstr); notice it looks for all types of line feeds -jacob