Make escaping slightly less aggressive

This commit is contained in:
Aidan Woods 2019-01-27 17:17:04 +00:00
parent 62615f4fc5
commit d6c97ee111
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -29,7 +29,7 @@ final class Escaper
*/
private static function escape($text, $allowQuotes = false)
{
return \htmlentities(
return \htmlspecialchars(
$text,
$allowQuotes ? \ENT_NOQUOTES : \ENT_QUOTES,
'UTF-8'