note 32730 added to function.nl2br

From: Date: Thu, 05 Jun 2003 12:09:27 +0000
Subject: note 32730 added to function.nl2br
Groups: php.notes 
Request: Send a blank email to php-notes+get-49786@lists.php.net to get a copy of this message
This works better, so you have not "infinity" lines in source code. "<br /> + \n" is good for user and for you too! $txt = preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />\n", $txt); ---- Manual Page -- http://www.php.net/manual/en/function.nl2br.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32730 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32730&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32730&report=yes

« previous php.notes (#49786) next »