On Fri, Jun 22, 2001 at 03:18:20PM +0200, 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
> Ok, somebody can always use something like str_replace("\n", "<br>",
> $text) to get the old functionality.

What if the rest of your code is generating XHTML?  It's better to assume
the more strict syntax, especially considering that nobody has yet found (to
my knowledge) a browser where <br /> doesn't work.


PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to