1
0
mirror of https://github.com/erusev/parsedown.git synced 2025-09-03 20:02:33 +02: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

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'