new function> escapeHtml + fix css in admin menus

This commit is contained in:
slawkens
2023-02-06 17:39:23 +01:00
parent fa9f7aab7c
commit 60a854e5fd
4 changed files with 8 additions and 4 deletions

View File

@@ -1244,6 +1244,10 @@ function getCustomPage($page, &$success)
return $content;
}
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';