#11611 [Com]: nl2br() outputting invalid <br> tags
| From: | carmen-electra1715 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:07:17 +0000 |
| Subject: | #11611 [Com]: nl2br() outputting invalid <br> tags | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62980@lists.php.net to get a copy of this message | ||
ID: 11611
Comment by: carmen-electra1715 at hotmail dot com
Reported By: nutbar at chemlab dot org
Status: Bogus
Bug Type: Strings related
Operating System: Linux Slackware current 2.4.5
PHP Version: 4.0.5
New Comment:
<a href=http://s-free-show-pornpho.da.ru>carmen
electra</a>
Previous Comments:
------------------------------------------------------------------------
[2001-06-22 09:07:20] sniper@php.net
Could this be even more bogus? :)
------------------------------------------------------------------------
[2001-06-22 04:39:51] derick@php.net
It's XHTML compliant
------------------------------------------------------------------------
[2001-06-21 22:13:10] nutbar at chemlab dot org
put this into a test php file:
<?php
$temp = "this is\n\na test\n";
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 :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11611&edit=1