mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-22 16:56:50 +01:00
Convert single quotes too with Str::escape()
This commit is contained in:
parent
9abbfc521c
commit
1501d06e99
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user