Fixed typo
diff --git a/system/core/Security.php b/system/core/Security.php
index 2cf214b..cce20cd 100755
--- a/system/core/Security.php
+++ b/system/core/Security.php
@@ -605,7 +605,7 @@
 				{
 					if (($char = array_search($matches[$i].';', $_entities, TRUE)) !== FALSE)
 					{
-						$replace[$matches[$i]] = $character;
+						$replace[$matches[$i]] = $char;
 					}
 				}
 
@@ -934,4 +934,4 @@
 }
 
 /* End of file Security.php */
-/* Location: ./system/core/Security.php */
\ No newline at end of file
+/* Location: ./system/core/Security.php */