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:
@@ -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'
|
||||
|
Reference in New Issue
Block a user