dadamssg Posted June 5, 2009 Share Posted June 5, 2009 i just launched my site...and it allows users to store descriptions of things. i have where you can update your description too. I use the stripslashes function when outputting the data and i just got through testing this out...writing a description with apostrophes and then seeing how it displays...good with me. then i update the description to see if the problem is there...looks fine to me. But when i viewed a description posted by one of my users, her description has slashes in it before the apostrophes..i can't think of whats going on here????? Link to comment https://forums.phpfreaks.com/topic/161120-stripslashes-issue/ Share on other sites More sharing options...
gijew Posted June 5, 2009 Share Posted June 5, 2009 You are probably adding slashes more then once. Stripslashes doesn't take care of em' all. Some code would be nice Worst case scenario = str_replace('\', '', $string); Link to comment https://forums.phpfreaks.com/topic/161120-stripslashes-issue/#findComment-850223 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.