note 45538 deleted from function.chr by nlopess
| From: | nlopess@php.net | Date: | Fri, 10 Sep 2004 09:09:51 +0000 |
| Subject: | note 45538 deleted from function.chr by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76395@lists.php.net to get a copy of this message | ||
Note Submitter: me at truceco dot com
----
I was pulling data from a textarea field on a form to email to myself in php when I noticed that if
the user typed in " or ' the message would automatically add a \ before them. When I got
my email it would look something like this:
The book, \"A wrinkle in time\" wasn\'t any good.
To fix this, I simply did this:
$message = srt_replace(chr(92), "", $message);
Hope it helps someone!!!