note 19201 added to function.nl2br
| From: | birkholz at web dot de | Date: | Tue, 19 Feb 2002 16:46:17 +0000 |
| Subject: | note 19201 added to function.nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26801@lists.php.net to get a copy of this message | ||
What nl2br() does is NOT to convert newlines to BR, it adds a BR before any newline(newline/return
or return, depending on OS).
So if you convert a string returned from nl2br() with a unnl2br()-function, just strip the BR's
instead of replacing them.
--
http://www.php.net/manual/en/function.nl2br.php
http://master.php.net/manage/user-notes.php?action=edit+19201
http://master.php.net/manage/user-notes.php?action=delete+19201
http://master.php.net/manage/user-notes.php?action=reject+19201