Date: 06/22/01
- Next message: mike_comp <email protected>: "[PHP-DEV] Bug #11264 Updated: apache child crashes"
- Previous message: edl <email protected>: "[PHP-DEV] Bug #11620: PHP has encountered an Access Violation at 012D24B6"
- In reply to: lenar: "Re: [PHP-DEV] Bug #11611 Updated: nl2br() outputting invalid <br> tags"
- Next in thread: Lenar Lõhmus: "Re: [PHP-DEV] Bug #11611 Updated: nl2br() outputting invalid <br> tags"
- Reply: Lenar Lõhmus: "Re: [PHP-DEV] Bug #11611 Updated: nl2br() outputting invalid <br> tags"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
> XHTML.
>
> 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.
Matt
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: mike_comp <email protected>: "[PHP-DEV] Bug #11264 Updated: apache child crashes"
- Previous message: edl <email protected>: "[PHP-DEV] Bug #11620: PHP has encountered an Access Violation at 012D24B6"
- In reply to: lenar: "Re: [PHP-DEV] Bug #11611 Updated: nl2br() outputting invalid <br> tags"
- Next in thread: Lenar Lõhmus: "Re: [PHP-DEV] Bug #11611 Updated: nl2br() outputting invalid <br> tags"
- Reply: Lenar Lõhmus: "Re: [PHP-DEV] Bug #11611 Updated: nl2br() outputting invalid <br> tags"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

