note 14351 rejected and deleted from function.nl2br.php by zak
| From: | zak@php.net | Date: | Fri, 27 Jul 2001 09:03:09 +0000 |
| Subject: | note 14351 rejected and deleted from function.nl2br.php by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15911@lists.php.net to get a copy of this message | ||
[PHP 4.04pl1] nl2br didn't work for me for some reason.<BR> It didn't convert any
nls, although they were visible in my hex editor. However, with the above example it works great, if
you just replace the < and > with "<>", like this:
$newline = ereg_replace("(n)", "<BR>",$newline);