note 101642 deleted from function.nl2br by danbrown

From: Date: Fri, 31 Dec 2010 15:42:15 +0000
Subject: note 101642 deleted from function.nl2br by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175371@lists.php.net to get a copy of this message
Note Submitter: a dot e at inne dot pl Reason: in docs ---- The most important note is missing that nl2br does not remove \n character. It replaces \n with <br />\n <?php $x = "A\nB"; $y = nl2br( nl2br( $x ) ); // produces "A<br /><br />\nB" ?> In addition \r is not removed/replaced either.

« previous php.notes (#175371) next »