Re: formatting paragraphs in to strings

From: Date: Mon, 13 Jun 2005 21:11:09 +0000
Subject: Re: formatting paragraphs in to strings
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-216913@lists.php.net to get a copy of this message
On Mon, June 13, 2005 12:06 pm, Paul Nowosielski said: > I'm having a perplexing problem. I'm gather data through a <textarea> > html from field and dumping it to MySQL. > > I want to display the data as a long string with no carriage returns or > line breaks in a dhtml div window. What styles have you applied to the div and surrounding elements? > The problem I'm have is that the form data is remembering the carriage > returns. I tried using trim() and rtrim() with no luck. The data is > still formatted exactly like it was inputed. That sounds like PRE tag (or 'pre' style) or perhaps http://php.net/nl2br is being used when you don't really want that. > Any ideas why this is happening and how I can format the text properly?? Show us actual output, like a URL for better guesses. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#216913) next »