From 58f8594606849c63e0ee6b722cb03993faa5a09d Mon Sep 17 00:00:00 2001 From: absurdo Date: Thu, 11 May 2023 19:15:42 +0200 Subject: [PATCH] Fixes in escape function --- src/View.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View.php b/src/View.php index b9502a9..e7a47a3 100644 --- a/src/View.php +++ b/src/View.php @@ -318,7 +318,7 @@ class View { //Load function from loaded view with his parameters //array_unshift($arr_template_values, $this); - + call_user_func_array($func_view, $arr_template_values); $out_template=ob_get_contents(); @@ -776,7 +776,7 @@ class View { static public function e($text) { - $text=htmlspecialchars($text); + $text=htmlspecialchars($text, ENT_QUOTES, 'UTF-8')); return $text;