hassank1 Posted January 11, 2008 Share Posted January 11, 2008 Hii I am using WAMP I am printing a post on my page ... and before that I've cleaned it ... htmlentities and these stuff .. so if output is : what's up <-- the char ' is printed correctly however,when I uploaded the script to my website the output become : what\'s up Quote Link to comment Share on other sites More sharing options...
asmith Posted January 11, 2008 Share Posted January 11, 2008 that's true . use stripslashes() in script : stripslashes("what\'s up") it will return "what's up". Quote Link to comment Share on other sites More sharing options...
revraz Posted January 11, 2008 Share Posted January 11, 2008 Do you have Magic Quotes on in your php.ini? It's doing what it should do, either via Magic Quotes or the addslashes function in your code, since you don't want to pass single quotes directly rigth? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.