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

@@ -118,7 +118,7 @@ if($action == 'edit' || $action == 'new') {
'news_link_form' => '?p=news&action=' . ($action == 'edit' ? 'edit' : 'add'),
'news_id' => isset($id) ? $id : null,
'title' => isset($p_title) ? $p_title : '',
'body' => isset($body) ? htmlentities($body, ENT_COMPAT, 'UTF-8') : '',
'body' => isset($body) ? escapeHtml($body) : '',
'type' => isset($type) ? $type : null,
'player' => isset($player) && $player->isLoaded() ? $player : null,
'player_id' => isset($player_id) ? $player_id : null,