Really don't use globals
diff --git a/system/helpers/typography_helper.php b/system/helpers/typography_helper.php
index cd3827c..f08e78b 100644
--- a/system/helpers/typography_helper.php
+++ b/system/helpers/typography_helper.php
@@ -88,8 +88,7 @@
 	 */
 	function entity_decode($str, $charset = NULL)
 	{
-		global $SEC;
-		return $SEC->entity_decode($str, $charset);
+		return get_instance()->security->entity_decode($str, $charset);
 	}
 }