note 37233 deleted from function.nl2br by aidan
| From: | aidan@php.net | Date: | Sun, 10 Oct 2004 10:37:33 +0000 |
| Subject: | note 37233 deleted from function.nl2br by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78276@lists.php.net to get a copy of this message | ||
Note Submitter: simon at esoft dot dk
----
Regarding the preg_replace version noted by "Junkie [Matt]", you should be aware that they
don't work exactly like nl2br, as nl2br inserts <br /> before the newline instead of
replacing it, so \n becomes <br />\n, and not just <br />.