diff --git a/src/classes/page.php b/src/classes/page.php index 3ebd2195..fb4a4ef2 100644 --- a/src/classes/page.php +++ b/src/classes/page.php @@ -262,7 +262,7 @@ class Page toast_wish_create : '', toast_wish_add : '', toast_wish_update : '', - toast_wish_save : '', + toast_wish_save : '', toast_wish_delete : '', toast_clipboard_error_title : '', diff --git a/src/functions/gettext.php b/src/functions/gettext.php index 760ac32b..fe0d949a 100644 --- a/src/functions/gettext.php +++ b/src/functions/gettext.php @@ -16,9 +16,9 @@ function __(string $text) $translation = $translations->find(null, $text); if ($translation) { - return $translation->getTranslation(); + return htmlentities($translation->getTranslation()); } } - return $text; + return htmlentities($text); }