Hi, It seems like the nl2br() function is broken when the input string does not contain any newlines. [sagi@domino tmp]$ php -v PHP 4.3.0-pre1 (cli), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies [sagi@domino tmp]$ cat test.php <?php print nl2br('hello world')."\n"; print nl2br("hello world\n")."\n"; ?> [sagi@domino tmp]$ php test.php !x7 hello world<br />
[sagi@domino tmp]$ It looks like someone already filed a bug report: http://bugs.php.net/bug.php?id=19858 Any news about this? Sagi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php