ID: 10707
Updated by: cardinal
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Strings related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

What it's actually outputting is "<br />\n"

<? $str = "One\nTwo"; echo nl2br($str); ?>

Yields

One<br />
Two

This is consistent with its old behavior, which was to output "<br>\n"

While it might not strictly be the expected behavior, this seems fine to me.  The 
newline won't affect how a browser renders the string, since it's just whitespace to 
be ignored.

Previous Comments:
---------------------------------------------------------------------------

[2001-05-07 11:27:04] [EMAIL PROTECTED]
It seems that nl2br() returns <br/n>

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10707&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to