note 19303 deleted from function.nl2br by tomsommer

From: Date: Sun, 27 Jun 2004 19:09:45 +0000
Subject: note 19303 deleted from function.nl2br by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71996@lists.php.net to get a copy of this message
Note Submitter: jin@cara.com ---- 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> ;)

« previous php.notes (#71996) next »