Admedia's Blog
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 :)
posted by Ross Sabes at
7:25 AM
0 Comments:
Post a Comment
<< Home
About Me
Name:
Ross Sabes
View my complete profile
Previous Posts
Save File Diaglogue with PHP
Old but good code
Cut Your Hair & Get a Real Job
Mike Nott » PHP Whois Script
Christian Death
deviantART: admedia
Excuse me, While I Tweak My Blog
4:47 am
Ten Commandments '06
Goody 2 Shoes
0 Comments:
Post a Comment
<< Home