Date: 04/04/01
- Next message: Hellekin O. Wolf: "[PHP-DEV] Re: ; arg seperator"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] Re: ; arg seperatorx"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 10156
Updated by: derick
Reported By: kynaston <email protected>
Old-Status: Open
Status: Closed
Bug Type: *Function Specific
Assigned To:
Comments:
It will be in 4.0.5, the docs are ahead of releases this time.
Previous Comments:
---------------------------------------------------------------------------
[2001-04-04 07:13:34] kynaston <email protected>
It seems that contrary to the docs, nl2br doesn't replace returns with <br/>, only with <br>.
Give it a try with:
print htmlspecialchars(nl2br("line1 n line2 n line3"));
If you're looking for XHTML compliance, use:
function nl2br_xhtml($text) {
return str_replace("<br>", "<br />", nl2br($text));
}
rgds,
Matt
My config command:
'./configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-shared' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8' '--with-xml'
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10156&edit=2
-- 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: Hellekin O. Wolf: "[PHP-DEV] Re: ; arg seperator"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] Re: ; arg seperatorx"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

