Getting rid of escaped ' in email
Posted on 2011-04-21
I have a form with a textarea input to let the customer enter comments. The PHP code that processes the form puts the string from the textarea into the body of an email and sends it to me.
The problem is that if the client enters an apostrophe ( ' ), as in "Here's a new order" it shows up in the email I get as " Here\'s a new order."
Does anyone know how I can get rid of the \ in the email?
Thanks for any help.