diff --git a/application/helpers/html_helper.php b/application/helpers/html_helper.php
index 33ea345d..099064ad 100644
--- a/application/helpers/html_helper.php
+++ b/application/helpers/html_helper.php
@@ -26,7 +26,7 @@ if ( ! function_exists('e'))
*/
function e(mixed $string): string
{
- return htmlspecialchars($string, ENT_QUOTES, 'UTF-8');
+ return htmlspecialchars((string)$string, ENT_QUOTES, 'UTF-8');
}
}