$buffer = str_replace(""", "\"", $buffer);
$buffer = str_replace('"', '\"', $buffer);
$buffer = addslashes($buffer);