sure you can. first check if magic quotes are on. if (get_magic_quotes_gpc()) { $str = stripslashes($str); } Code (markup):