mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
1b4a5ca59d
commit
a1036d09b6
1 changed files with 6 additions and 3 deletions
|
@ -1389,11 +1389,14 @@ echo "</PRE>\n";
|
|||
Returns <parameter>string</parameter> with '<br />' inserted
|
||||
before all newlines.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Until PHP 4.0.5, <function>nl2br</function> will return
|
||||
<parameter>string</parameter> with '<br>' 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 '<br>' inserted before
|
||||
newlines instead of '<br />'.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
See also <function>htmlspecialchars</function>,
|
||||
<function>htmlentities</function> and
|
||||
|
|
Loading…
Reference in a new issue