note 19303 added to function.nl2br
| From: | jin at cara dot com | Date: | Fri, 22 Feb 2002 14:36:29 +0000 |
| Subject: | note 19303 added to function.nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26935@lists.php.net to get a copy of this message | ||
this function have a problem for me, it replace the backreturn by a <br /> but i want a
<br>, so, you cant use de string replace to do it : this is an example
$con = nl2br($con);
$con = str_replace("<br />", "<br>", "$con");
it works fine for me... the <br /> do his job, but when i see the code, i dont like it, i
prefer the standard <br>
;)
--
http://www.php.net/manual/en/function.nl2br.php
http://master.php.net/manage/user-notes.php?action=edit+19303
http://master.php.net/manage/user-notes.php?action=delete+19303
http://master.php.net/manage/user-notes.php?action=reject+19303