From fa2a810db659fd6c70018c25703a0f0756ab603b Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 10 Aug 2019 14:43:20 -0600 Subject: [PATCH] Update functions.php --- resources/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index dca5c9c479..d87b53ea35 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -2018,8 +2018,8 @@ function number_pad($number,$n) { //escape user data function escape($string) { - return htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); - //return htmlentities($string, ENT_QUOTES, 'UTF-8'); + return htmlentities($string, ENT_QUOTES | ENT_HTML5, 'UTF-8'); + //return htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); } //output pre-formatted array keys and values