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 />"

There is no misprint, you're just interpreting it incorrectly.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts

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

Reply via email to