makaiguy
19 Aug 2006, 03:13
Working on a small PHP mailer form project on Apache v1.3.36 to sent html-formatted mail.
Form is POSTed with message text in a textarea named COMMENT. Some code I'm adapting uses the following to strip linefeeds and replace with html breaks:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Only problem is that any apostrophes in the submitted message get a \ inserted before them. Thus "it's" becomes "it\'s" in the received mail.
I don't know beans about regular expressions. Can anybody help straighten this out?
Or is there something else that needs to be done to have apostrophes show up correctly?
Form is POSTed with message text in a textarea named COMMENT. Some code I'm adapting uses the following to strip linefeeds and replace with html breaks:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Only problem is that any apostrophes in the submitted message get a \ inserted before them. Thus "it's" becomes "it\'s" in the received mail.
I don't know beans about regular expressions. Can anybody help straighten this out?
Or is there something else that needs to be done to have apostrophes show up correctly?