Page 1 of 1

escaping characters

Posted: Wed Mar 11, 2009 7:28 pm
by jwerre
I have a text field that outputs a string but for some reason it escapes apostrophes ( ' ). So if you type "john's computer" in the text field and echo the post I get "john\'s computer" is there some kind of method that will remove the back slash?

Re: escaping characters

Posted: Wed Mar 11, 2009 7:44 pm
by Benjamin
magic_quotes are enabled. See: http://us2.php.net/magic_quotes

Re: escaping characters

Posted: Wed Mar 11, 2009 11:44 pm
by susrisha
stripslashes()