diff --git a/src/UI/Output.php b/src/UI/Output.php index 0a19aeb..a67c183 100644 --- a/src/UI/Output.php +++ b/src/UI/Output.php @@ -1239,7 +1239,7 @@ public static function safe_var_dump($x) { self::safe_var_cleanup($x, 0); var_dump($x); $result = ob_get_clean(); - return $result; + return htmlent_utf8($result); } public static function safe_print_r($x) { @@ -1247,7 +1247,7 @@ public static function safe_print_r($x) { self::safe_var_cleanup($x, 0); print_r($x); $result = ob_get_clean(); - return $result; + return htmlent_utf8($result); } public static function htmlError($message,$detail,$next=false) {