note 32786 added to function.nl2br

From: Date: Fri, 06 Jun 2003 20:28:35 +0000
Subject: note 32786 added to function.nl2br
Groups: php.notes 
Request: Send a blank email to php-notes+get-49911@lists.php.net to get a copy of this message
A lot of comments talk about reversing nl2br and other problems with saving and removing <br/> 's. You don't want to use nl2br() when you save your text in a database (new lines are prettier anyway). Use it when you retrieve the text from the database to output the text for the the webpage. ---- Manual Page -- http://www.php.net/manual/en/function.nl2br.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32786 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32786&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32786&report=yes

« previous php.notes (#49911) next »