Re: quotes in text strings

From: Date: Wed, 02 Oct 2002 11:05:28 +0000
Subject: Re: quotes in text strings
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118574@lists.php.net to get a copy of this message
In article <F72Y5wOqGp8wx4Otaz900007d2c@hotmail.com>, codareef@hotmail.com says... > Hi > > Single quote's in strings entered via a text input field are subsequently > appearing with what appears to be an escape character - > > comm\'ents > > how can i correct this? I've tried > htmlspecialchars($string, ENT_QUOTES); > and > htmlentities($string, ENT_QUOTES); > > but these don't seem to work (maybe its me). stripslashes() is the immediate solution, but you might also want to consider the various 'magic_quotes' settings in your php.ini -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#118574) next »