Re: cvs: php4 /ext/standard string.c

From: Date: Thu, 28 Dec 2000 16:39:13 +0000
Subject: Re: cvs: php4 /ext/standard string.c
References: 1 2  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3316@lists.php.net to get a copy of this message
On Thu, Dec 28, 2000 at 09:20:39AM +0200, Zeev Suraski wrote: > >jon Wed Dec 27 17:02:45 2000 EDT > > > > Modified files: > > /php4/ext/standard string.c > > Log: > > Make nl2br() output <br /> instead of <br> to be XHTML compliant. > > Are you sure that this is HTML compliant? Yes, it seems to be backwards compatible with every test I've tried. The only other option for making nl2br() both HTML and XHTML compliant is adding an optional parameter that overrides the "br" strings. That kind of defeats the purpose of having a separate nl2br() function, though. -- Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology http://www.csh.rit.edu/~jon/ : Computer Science House Member

« previous php.cvs (#3316) next »