From 0a596f62f403c8a5777539b69fc09e19a3901982 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Thu, 14 Aug 2008 03:06:25 +0000 Subject: [PATCH] Document is_xhtml parameter for nl2br() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@264802 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/nl2br.xml | 69 ++++++++++++++++----------- 1 file changed, 42 insertions(+), 27 deletions(-) diff --git a/reference/strings/functions/nl2br.xml b/reference/strings/functions/nl2br.xml index a4c94ce880..7fed5b8c8c 100644 --- a/reference/strings/functions/nl2br.xml +++ b/reference/strings/functions/nl2br.xml @@ -1,5 +1,5 @@ - + nl2br @@ -11,6 +11,7 @@ stringnl2br stringstring + boolis_xhtml Returns string with '<br />' inserted @@ -30,6 +31,14 @@ + + is_xhtml + + + Whenever to use XHTML compatible line breaks or not (defaults to &true;) + + + @@ -41,32 +50,6 @@ - - &reftitle.changelog; - - - - - - &Version; - &Description; - - - - - 4.0.5 - - nl2br is now XHTML compliant. All older versions - will return string with '<br>' inserted - before newlines instead of '<br />'. - - - - - - - - &reftitle.examples; @@ -90,6 +73,38 @@ foo isn't
+ + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.3.0 + + Added the is_xhtml parameter. + + + + 4.0.5 + + nl2br is now XHTML compliant. All older versions + will return string with '<br>' inserted + before newlines instead of '<br />'. + + + + + + + + &reftitle.seealso;