Jump to content

[SOLVED] Converting single quotes so they don't become "\'"


Recommended Posts

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!!!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.