[PHP-DOC] cvs: phpdoc /en/functions strings.xml From: Daniel Beckham (danbeck <email protected>)
Date: 05/22/01

danbeck Tue May 22 09:11:31 2001 EDT

  Modified files:
    /phpdoc/en/functions strings.xml
  Log:
  clarified XHTML compatibility change to nl2br
  
Index: phpdoc/en/functions/strings.xml
diff -u phpdoc/en/functions/strings.xml:1.88 phpdoc/en/functions/strings.xml:1.89
--- phpdoc/en/functions/strings.xml:1.88 Mon May 21 10:56:06 2001
+++ phpdoc/en/functions/strings.xml Tue May 22 09:11:30 2001
@@ -1389,11 +1389,14 @@
      Returns <parameter>string</parameter> with '&lt;br /&gt;' inserted
      before all newlines.
     </para>
+ <note>
     <para>
- Until PHP 4.0.5, <function>nl2br</function> will return
- <parameter>string</parameter> with '&lt;br&gt;' inserted
- before all newlines.
+ Starting with PHP 4.0.5, <function>nl2br</function> is now XHTML
+ complaint. All versions before 4.0.5 will return
+ <parameter>string</parameter> with '&lt;br&gt;' inserted before
+ newlines instead of '&lt;br /&gt;'.
     </para>
+ </note>
     <para>
      See also <function>htmlspecialchars</function>,
      <function>htmlentities</function> and