Re: Preserving \r\n in Textarea

From: Date: Fri, 30 Jun 2000 03:18:47 +0000
Subject: Re: Preserving \r\n in Textarea
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3947@lists.php.net to get a copy of this message
> Is there a function that will preserve newline (\n) and/or carriage returns > (\r) so when the text is pulled from a database is displayed in a "textarea" > form, the lines break properly? > > Right now, they get converted in to spaces and I'm not sure how to preserve > them. Any help would be greatly appreciated. nl2br() -Rasmus

« previous php.general (#3947) next »