Your PHP configuration is probably setup to escape characters. Just run the string through
PHP: stripslashes - Manual . If you plan to port this script to other servers, then
PHP Code:
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
is more reliable.