just add to $value = trim($_REQUEST['value']); add -- > $value = str_replace("\\\"", "'", $value); it helped me
just add to
$value = trim($_REQUEST['value']);
add -- >
$value = str_replace("\"", "'", $value);
it helped me