use http://www.php.net/manual/en/functio...ity-decode.php before saving