Re: nl2br misprint

From: Date: Sat, 22 Jan 2005 02:54:02 +0000
Subject: Re: nl2br misprint
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-207024@lists.php.net to get a copy of this message
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

« previous php.general (#207024) next »