mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
prevent returning html entities in sanitizeProblemChars helper
This commit is contained in:
@@ -356,7 +356,8 @@ function sanitizeProblemChars($str)
|
|||||||
'ss' => '/ß/'
|
'ss' => '/ß/'
|
||||||
);
|
);
|
||||||
|
|
||||||
return preg_replace($acentos, array_keys($acentos), htmlentities($str, ENT_NOQUOTES | ENT_HTML5, $enc));
|
$tmp = preg_replace($acentos, array_keys($acentos), htmlentities($str, ENT_NOQUOTES | ENT_HTML5, $enc));
|
||||||
|
return html_entity_decode($tmp, ENT_NOQUOTES | ENT_HTML5, $enc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user