note 46564 deleted from function.nl2br by curt
| From: | curt@php.net | Date: | Sat, 16 Oct 2004 05:47:59 +0000 |
| Subject: | note 46564 deleted from function.nl2br by curt | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78649@lists.php.net to get a copy of this message | ||
Note Submitter: telconstar99 at hotmail dot com
----
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.
----
Reason: useless note