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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to