Re: Htmlentities and Newlines?

From: Date: Sun, 29 Sep 2002 00:59:53 +0000
Subject: Re: Htmlentities and Newlines?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118014@lists.php.net to get a copy of this message
On Saturday 28 September 2002 08:42 pm, John W. Holmes wrote: > > Short question: following your advice, what would the data look like > > in > > > the > > db if I typed in: > > > > Hi Sascha. > > Next line is doubled. > > > > Double. > > > > How would that appear iun the db? In mine, it looks exactly like I > > typed > > > it > > above (using 1 & 2 with magic_quotes=on). > > It depends on your viewer, I guess. It may appear as though it's all on > one line, but the new lines are there, regardless. Htmlentities() > doesn't do anything to linebreaks... > > ---John Holmes... Hi John, Tried that Echo "<tr><td>" . nl2br(htmlentities($myrow['request'])) . and it appears exactly as it is written (as part of the text request). Maybe if I try again Monday with a fresh mind, I might discover what I'm doing wrong. I'll keep hacking at this. Thanks for your help. Andre

« previous php.general (#118014) next »