For example:
Code: Select all
typeof text == "string"Code: Select all
typeof text == \"string\"But Symfony's any automatic escaping mechanism cannot or should not cause this behavior, because
Code: Select all
// when I read file
$code = file_get_contents($file);
// and for testing, directly after reading, I write out the read content, IT IS ESCAPED
file_put_contents('read_asset_code.txt', date('Y-m-d H:i:s').': '.$file.': '.$code, FILE_APPEND);And no matter whether I use file_get_contents or fread.
Can anyone help?