Re: Bug #11611 Updated: nl2br() outputting invalid <br> tags
| From: | lenar | Date: | Sun, 24 Jun 2001 19:37:26 +0000 |
| Subject: | Re: Bug #11611 Updated: nl2br() outputting invalid <br> tags | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-57865@lists.php.net to get a copy of this message | ||
"Derick Rethans" <d.rethans@jdimedia.nl> wrote in message news:Pine.LNX.4.30.0106231256480.6579-100000@jdi.jdimedia.nl...
> On Fri, 22 Jun 2001, lenar wrote:
>
> > Shouldn't there be an optional flag to nl2br to change the behavior of function to
> > what it used to be.
> > Just there's no point in <br /> like tags when the rest of your code is just
> > generating HTML compliant output,
> > not XHTML.
>
> <br /> is HTML compliant too, and there is no single browser who doesn't
> get it.
But it's not the behaviour up to today of this function. And I suggested only optional flag for
getting old behavior.
Like nl2br(string text [boolean html]).
And to avoid rest, I say it more clearly: I agree it should generate XHTML _by_default_.
lenar
>