smc Posted March 11, 2007 Share Posted March 11, 2007 Hello, I've been ramming my head against a wall for a good half hour now. I have a private message system that a user types in things like User to recieve, subject, and the message. In the subject and message field, however, I am encountering a huge problem in a small way. Whenever a user types ' the script, for whatever reason, makes it \'. But I can't get the to be converted back to the traditional '. I've tried htmlspecialchars() and htmlentities with html_entity_decode but no luck. Help!!! Quote Link to comment https://forums.phpfreaks.com/topic/42252-solved-converting-single-quotes-so-they-dont-become/ Share on other sites More sharing options...
papaface Posted March 11, 2007 Share Posted March 11, 2007 strip_slashes(); Quote Link to comment https://forums.phpfreaks.com/topic/42252-solved-converting-single-quotes-so-they-dont-become/#findComment-204971 Share on other sites More sharing options...
smc Posted March 11, 2007 Author Share Posted March 11, 2007 Your my hero, figures it would be so simple Thanks!!! Quote Link to comment https://forums.phpfreaks.com/topic/42252-solved-converting-single-quotes-so-they-dont-become/#findComment-204979 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.