Skip to content

Commit 0be2bb3

Browse files
committed
Set flags to new 8.1 defaults as that decodes more symbols
1 parent 06dc9a1 commit 0be2bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function clean(string $value, bool $allowHTML = false): ?string
1010
$value = trim($value);
1111

1212
if (!$allowHTML) {
13-
$value = html_entity_decode($value);
13+
$value = html_entity_decode($value, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401);
1414
$value = strip_tags($value);
1515
}
1616

0 commit comments

Comments
 (0)