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;