new function> escapeHtml + fix css in admin menus

This commit is contained in:
slawkens
2023-02-06 17:32:48 +01:00
parent 35a660be7d
commit 58bc0a7c28
5 changed files with 8 additions and 4 deletions

View File

@@ -1537,6 +1537,10 @@ function removeIfFirstSlash(&$text) {
}
};
function escapeHtml($html) {
return htmlentities($html, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
}
// validator functions
require_once LIBS . 'validator.php';
require_once SYSTEM . 'compat/base.php';