Fix html entities not fully decoding
This commit is contained in:
parent
33b807764b
commit
6689a06e37
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ class Sanitiser
|
||||||
{
|
{
|
||||||
public static function render(string $text): string
|
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
|
public static function getNumber(mixed $valueToSanitise): float
|
||||||
|
|
Loading…
Reference in a new issue