Convert single quotes too with Str::escape()

This commit is contained in:
Giuseppe Criscione 2021-07-20 16:47:45 +02:00
parent 9abbfc521c
commit 1501d06e99

View File

@ -88,7 +88,7 @@ class Str
*/
public static function escape(string $string): string
{
return htmlspecialchars($string, ENT_COMPAT | ENT_SUBSTITUTE, 'utf-8', false);
return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE, 'utf-8', false);
}
/**