Re: nl2br misprint
| From: | Jason Wong | Date: | Fri, 21 Jan 2005 23:52:06 +0000 |
| Subject: | Re: nl2br misprint | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207009@lists.php.net to get a copy of this message | ||
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