diff --git a/codebase/base_connector.php b/codebase/base_connector.php
index <HASH>..<HASH> 100644
--- a/codebase/base_connector.php
+++ b/codebase/base_connector.php
@@ -230,7 +230,7 @@ class DataItem{
 		@return 
 			escaped string
 	*/
-	protected function xmlentities($string) { 
+	public function xmlentities($string) { 
    		return str_replace( array( '&', '"', "'", '<', '>', '’' ), array( '&amp;' , '&quot;', '&apos;' , '&lt;' , '&gt;', '&apos;' ), $string);
 	}
[fix] set xmlentities to public, must fix some backward compatibility issues