From fd24de69a3bf281ff2667612f484e268ba066de3 Mon Sep 17 00:00:00 2001 From: Eugene Leonovich Date: Sun, 12 Mar 2017 22:44:03 +0100 Subject: [PATCH] Fix a call to undefined function HTMLPurifier_Encoder() --- library/HTMLPurifier/EntityParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/HTMLPurifier/EntityParser.php b/library/HTMLPurifier/EntityParser.php index 50e07bb2..e18d7325 100644 --- a/library/HTMLPurifier/EntityParser.php +++ b/library/HTMLPurifier/EntityParser.php @@ -122,7 +122,7 @@ class HTMLPurifier_EntityParser if ($hex_part) { return HTMLPurifier_Encoder::unichr(hexdec($hex_part)); } elseif ($dec_part) { - return HTMLPurifier_Encoder((int) $dec_part); + return HTMLPurifier_Encoder::unichr((int) $dec_part); } else { if (!$this->_entity_lookup) { $this->_entity_lookup = HTMLPurifier_EntityLookup::instance();