Re: nl2br misprint

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2005-01-21 at 17:52, Jason Wong wrote:
> On Saturday 22 January 2005 07:36, Scott DeMers wrote:
> > From the function page on php.net (
> > http://us4.php.net/manual/en/function.nl2br.php ):
> >
> > "Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions
> > before 4.0.5 will return string with '<br>' inserted before newlines
> > instead of '<br />'."
> >
> > Is this a misprint, ot does the revised function actually do this?
> > According to the w3c, "<br />' is compliant, while "<br>" is not; see
> > http://www.w3.org/TR/xhtml1/.
> 
> Versions before 4.0.5 returns "<br>"
> Versions after 4.0.5 returns "<br />"
> 

Logic error.  what about the case of version = 4.0.5.  :)

No need to reply.  I get it but could not resist the dig.

Bret

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux