clarified XHTML compatibility change to nl2br

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@48153 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Beckham 2001-05-22 16:11:30 +00:00
parent 1b4a5ca59d
commit a1036d09b6

View file

@ -1389,11 +1389,14 @@ echo "</PRE>\n";
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