$str=eregi_replace("\"",""",$str);
$str=eregi_replace("\'","'",$str);
$str=eregi_replace("\","\",$str);
$str=eregi_replace("<", "<",$str);
$str=eregi_replace(">", ">",$str);
i have been trying to use the above lines to try and filter the text that users input on my website, but they dont seem to work for the backslash and double quotes characters ... when the output is printed into a file, both chars are preceded by the escape sequence character ... what should i do to repair this ???
$str=eregi_replace("\'","'",$str);
$str=eregi_replace("\","\",$str);
$str=eregi_replace("<", "<",$str);
$str=eregi_replace(">", ">",$str);
i have been trying to use the above lines to try and filter the text that users input on my website, but they dont seem to work for the backslash and double quotes characters ... when the output is printed into a file, both chars are preceded by the escape sequence character ... what should i do to repair this ???