note 46564 added to function.nl2br
| From: | telconstar99 at hotmail dot com | Date: | Fri, 15 Oct 2004 15:25:16 +0000 |
| Subject: | note 46564 added to function.nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78590@lists.php.net to get a copy of this message | ||
If you're using this function be extra sure that you notice this does NOT replace \n with
<br />. It simply adds it in front of it.
If you are storing information from a <form> in a database and try and pull it back out into a
<form>, just replace all the <br /> with nothing and don't touch the \n(s) that you
see. Use the example a few posts above mine to do this. You do not need a br2nl() function for this
because using one would lead to double spacing.
----
Manual Page -- http://www.php.net/manual/en/function.nl2br.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46564
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46564&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46564&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46564&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46564&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46564&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46564&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46564&report=yes
Search -- http://master.php.net/manage/user-notes.php