From ea94a55744cc2455bcdcee63544c402fdc5596cc Mon Sep 17 00:00:00 2001 From: Craig Thompson Date: Wed, 14 Jan 2015 16:50:00 +0000 Subject: [PATCH] Made html::escape a static function. --- application/helpers/MY_html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/helpers/MY_html.php b/application/helpers/MY_html.php index 4b22400bf0..6f5ec78aaf 100644 --- a/application/helpers/MY_html.php +++ b/application/helpers/MY_html.php @@ -98,7 +98,7 @@ public function allowed_html() * @param bool $double_encode * @return string */ - public function escape($input, $double_encode = FALSE) + public static function escape($input, $double_encode = FALSE) { // Ensure we have valid correctly encoded string.. // http://stackoverflow.com/questions/1412239/why-call-mb-convert-encoding-to-sanitize-text