1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

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'