Thursday, August 10, 2006

nl2br 2.0

nl2br doesn't get rid of \r characters that will break lines on windows.

So use
preg_replace("/[\n\r]/","", $string);
?>
instead :)

0 Comments:

Post a Comment

<< Home