note 17352 added to function.nl2br
| From: | hmfireball at hotmail dot com | Date: | Wed, 05 Dec 2001 15:30:59 +0000 |
| Subject: | note 17352 added to function.nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21639@lists.php.net to get a copy of this message | ||
When I use nl2br, there's a new line before and after <BR />
Is that normal ?
This results in a bug when used with JavaScript after:
<SCRIPT>
displayTextArea( "hello
<BR />
how are you ?" );
</SCRIPT>
I want:
<SCRIPT>
displayTextArea( "hello<BR />how are you ?" );
</SCRIPT>
--
http://www.php.net/manual/en/function.nl2br.php
http://master.php.net/manage/user-notes.php?action=edit+17352
http://master.php.net/manage/user-notes.php?action=delete+17352
http://master.php.net/manage/user-notes.php?action=reject+17352