note 55741 added to function.nl2br

From: Date: Fri, 12 Aug 2005 00:47:55 +0000
Subject: note 55741 added to function.nl2br
Groups: php.notes 
Request: Send a blank email to php-notes+get-93473@lists.php.net to get a copy of this message
Regarding last post by admin at ninthcircuit, I think: "rather than get into nasty regular expressions" === "I don't understand regular expressions" No offense, but please be aware that kristen's solution is much more robust. The ninthcircuit solution will miss cases when there are differences in case (e.g., BR instead of br) and when there is more than one space between the r and the / (e.g., <br />). We all like robust code, don't we? ---- Manual Page -- http://www.php.net/manual/en/function.nl2br.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55741 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55741&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55741&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55741&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55741&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55741&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55741&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55741&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93473) next »