Fix an erroneous variable name
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 9c4c4da..2f451b4 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -621,7 +621,7 @@
 			return str_replace(array('<', '>'), array('&lt;', '&gt;'), stripslashes($str));
 		}
 
-		return str_replace(array("'", '"'), array('&#39;', '&quot;'), stripslashes($data));
+		return str_replace(array("'", '"'), array('&#39;', '&quot;'), stripslashes($str));
 	}
 }