Hi, when the user enters the ' character in the form and then my site stores it into mysql db, everything seems to be fine.
But when the user views his information, the ' character is displayed as \\\'
For example, user puts in:
what'sup
the site will show it as:
what\\\'sup
Does anybody know how to fix that?
Thanks.
P.S.: I use strip_tags() when displaying user info.
Character problem
Moderator: General Moderators
try stripslashes()
http://us3.php.net/manual/en/function.stripslashes.php
http://us3.php.net/manual/en/function.stripslashes.php
-
jonwondering
- Forum Commoner
- Posts: 39
- Joined: Mon Mar 13, 2006 6:26 pm