mirror of
https://github.com/webmin/webmin.git
synced 2026-05-20 21:50:28 +01:00
Add to use HTML::Entities to try to decode all possible entities
https://github.com/webmin/webmin/pull/1917#discussion_r1213969328
This commit is contained in:
@@ -284,6 +284,10 @@ $str =~ s/"/"/g;
|
||||
$str =~ s/'/'/g;
|
||||
$str =~ s/=/=/g;
|
||||
$str =~ s/ / /g;
|
||||
eval "use HTML::Entities";
|
||||
if (!$@) {
|
||||
$str = decode_entities($str);
|
||||
}
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user