Removing ' from mail

the mail() function

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 19
Joined: Fri Dec 19, 2003 10:51 am

Sun Jun 06, 2004 11:51 am

Apologies for the incorrect terminology throughout this post.

I've set up my mail which is working in every way I want it to - except that it places a / before (what I assume are reserved) characters such as " and '

Is there a way I can get this to email without those in it? I'm using $content = strip_tags($content); to ensure there are no tags but can't work out how to prevent the / in the emails.

Any advice appreciated.


User avatar
Posts: 826
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Sun Jun 06, 2004 2:47 pm

you could use str_replace('/','',$content)

but / should not effect messages \ will thought.. you can use stripslashes() for that.

Post Reply