Browse Source

Update functions.php

FusionPBX 6 years ago
parent
commit
cb5d335c55
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/functions.php

+ 2 - 2
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