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
About Me
Name:
Ross Sabes
View my complete profile
MY STUFF
ADDESIGNCONCEPTS.COM
BLOG STYLER
OPEN GALLERY PROJECT
OTHER BLOGS
Answers by God
OSX CODE
AVATARIAN
REMOVETHELABELS.COM
SYBERSNAKE.COM
EZ's LIFE
ROBB MCAULAY
POSITIVE APE INDEX
GHOSTGIRL705
3XW
OTHER LINKS
CARTOONS
MESSOBLUE/ZEN GARDEN CSS
FLASH KIT
RESOURCES
PHP MANUAL
MYSQL MANUAL
MASTERING AJAX
Previous Posts
websitedesignby.com
nl2br 2.0
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
Archives
August 2005
January 2006
March 2006
April 2006
May 2006
July 2006
August 2006
March 2009