Shouldn't there be an optional flag to nl2br to change the behavior of function to
what it used to be.
Just there's no point in <br /> like tags when the rest of your code is just
generating HTML compliant output,
not XHTML.
Ok, somebody can always use something like str_replace("\n", "<br>", $text) to get the
old functionality.
lenar.
<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ID: 11611
> Updated by: sniper
> Reported By: [EMAIL PROTECTED]
> Old-Status: Closed
> Status: Bogus
> Bug Type: Strings related
> Operating system:
> PHP Version: 4.0.5
> Assigned To:
> Comments:
>
> Could this be even more bogus? :)
>
>
> Previous Comments:
> ---------------------------------------------------------------------------
>
> [2001-06-22 04:39:51] [EMAIL PROTECTED]
> It's XHTML compliant
>
> ---------------------------------------------------------------------------
>
> [2001-06-21 22:13:10] [EMAIL PROTECTED]
> put this into a test php file:
>
> <?php
> $temp = "this isnna testn";
> printf("%s", nl2br($temp));
> ?>
>
> and you should get this as output from your webserver:
>
> this is<br />
> <br />
> a test<br />
>
> I have confirmed this to be also an issue in the 4.0.6 release candidates, but I do
>not know when this all of a sudden became an issue. I'd like to know why it's
>creating <br /> tags instead of <br> tags :)
>
> ---------------------------------------------------------------------------
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=11611&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]
>
--
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]