From a1036d09b64fa24714b260d0681f169d1d01feb4 Mon Sep 17 00:00:00 2001 From: Daniel Beckham Date: Tue, 22 May 2001 16:11:30 +0000 Subject: [PATCH] clarified XHTML compatibility change to nl2br git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@48153 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/strings.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/functions/strings.xml b/functions/strings.xml index 654c3a8fc6..fe9a3bd52c 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1389,11 +1389,14 @@ 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. + Starting with PHP 4.0.5, nl2br is now XHTML + complaint. All versions before 4.0.5 will return + string with '<br>' inserted before + newlines instead of '<br />'. + See also htmlspecialchars, htmlentities and