ID: 10707
Updated by: cardinal
Old-Status: Open
Status: Closed
Bug Type: Strings related
Operating system: 
PHP Version: 4.0.5
Assigned To: 

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

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


One<br />

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

PHP Development Mailing List <>
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