note 10065 added to nl2br
| From: | eightraks at linux-foo dot com | Date: | Mon, 11 Dec 2000 15:55:29 +0000 |
| Subject: | note 10065 added to nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8612@lists.php.net to get a copy of this message | ||
Well, there's some major issues with NewLine codes vs OS (win, linux, mac). Here is what I use
: <br> $s_data = ereg_replace("(\r\n)|(\n)|(\r)", "*br*",
$s_data);<br>So far it worked great for me.<br><br>Greets, EiGHTRAKS
http://www.php.net/manual/function.nl2br.php