note 34364 added to function.nl2br

From: Date: Thu, 24 Jul 2003 22:37:46 +0000
Subject: note 34364 added to function.nl2br
Groups: php.notes 
Request: Send a blank email to php-notes+get-52593@lists.php.net to get a copy of this message
Re: last post. Storing newline characters rather than <br /> is desired. If the user is inputting real HTML such as "<br>" (rather than hitting 'return') you may want to convert this to a new line character before persisting to the database. Therefore there is still a need for a reversal function like br2nl() - albeit not a fundamental function that should be included in php. ---- Manual Page -- http://www.php.net/manual/en/function.nl2br.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34364 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34364&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34364&report=yes

« previous php.notes (#52593) next »