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:
parent
62615f4fc5
commit
d6c97ee111
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user