Re: preserve text formatting

From: Date: Wed, 09 Aug 2000 21:56:06 +0000
Subject: Re: preserve text formatting
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11002@lists.php.net to get a copy of this message
> Is there any way to preserve text formatting of a string when inserting it > into a mysql database field? I know I could wrap it with some html, but I > really don't need that kind of formatting, I just need to preserve the > carriage returns and new line calls. Just insert it. I do this all the time & it works great, even for things like double-byte Chinese. However, a cleaner (albeit less convenient) approach would be to run your text through something like htmlentities or urlencode before insertion.

« previous php.general (#11002) next »