From 0c2700f4927399e6585686298e5232894688a60c Mon Sep 17 00:00:00 2001 From: Damien Seguy Date: Tue, 24 Apr 2001 07:27:01 +0000 Subject: [PATCH] Added new behaviour of nl2br() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@45758 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/strings.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/strings.xml b/functions/strings.xml index 8249b4fb53..7c8b5d6db7 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1384,6 +1384,11 @@ echo "</PRE>\n"; Returns string with '<br />' inserted before all newlines. + + Until PHP 4.0.5, nl2br will return + string with '<br>' inserted + before all newlines. + See also htmlspecialchars, htmlentities and