From 6689a06e378720c9c109423208a75791a8a85785 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Sun, 9 Oct 2022 15:18:45 +0200 Subject: [PATCH] Fix html entities not fully decoding --- src/classes/sanitiser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/sanitiser.php b/src/classes/sanitiser.php index 3ebd1542..57fbd380 100644 --- a/src/classes/sanitiser.php +++ b/src/classes/sanitiser.php @@ -6,7 +6,7 @@ class Sanitiser { public static function render(string $text): string { - return html_entity_decode($text); + return html_entity_decode($text, ENT_HTML5); } public static function getNumber(mixed $valueToSanitise): float