diff --git a/.gitignore b/.gitignore index a262a4ac65..2fd82865cc 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ application/config/config.php application/config/database.php application/config/encryption.php tests/phpunit/phpunit.xml +/nbproject/ \ No newline at end of file diff --git a/application/helpers/MY_html.php b/application/helpers/MY_html.php index 4b22400bf0..e5f6f21667 100644 --- a/application/helpers/MY_html.php +++ b/application/helpers/MY_html.php @@ -19,7 +19,7 @@ class html extends html_Core { * @param string $input * @return string */ - public function clean($input) + public static function clean($input) { require_once APPPATH.'libraries/htmlpurifier/HTMLPurifier.auto.php'; @@ -51,7 +51,7 @@ public function clean($input) * @param bool $encode Encode html entities? * @return string */ - public function strip_tags($input, $encode = TRUE) + public static function strip_tags($input, $encode = TRUE) { require_once APPPATH.'libraries/htmlpurifier/HTMLPurifier.auto.php'; @@ -74,7 +74,7 @@ public function strip_tags($input, $encode = TRUE) * * @return string **/ - public function allowed_html() + public static function allowed_html() { require_once APPPATH.'libraries/htmlpurifier/HTMLPurifier.auto.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