Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Removing \ in email text
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Removing \ in email text
Removing \ in email text
29-12-2011 1:05 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have a .php form which reads text inputs and then sends an email to me. If someone includes some thing like "I've" (without the quotes), it arrives as "I\'ve" (without the quotes).
Is there an easy way to correct this behaviour?
Is there an easy way to correct this behaviour?
Message 1 of 3
(906 Views)
2 REPLIES 2
Re: Removing \ in email text
29-12-2011 4:28 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Best thing I could find was this. Hope that helps

Message 2 of 3
(171 Views)
Re: Removing \ in email text
29-12-2011 4:39 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi Joanne, thanks for the suggestion.
I found an alternative just five minutes ago:
replace mail($to, $subject, $message, $headers);
with
mail($to, $subject, stripslashes($message), $headers);
Seems to work fine.
I found an alternative just five minutes ago:
replace mail($to, $subject, $message, $headers);
with
mail($to, $subject, stripslashes($message), $headers);
Seems to work fine.
Message 3 of 3
(171 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Removing \ in email text