In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php