static function xmlData($string, $cdata=false) {
        $string = str_replace("]]>", "]]]]><![CDATA[>", $string);
        if (!$cdata)
            $string = "<![CDATA[$string]]>";
        return $string;
    }
static function xmlData($string, $cdata=false) {
        $string = str_replace("]]>", "]]]]><![CDATA[>", $string);
        if (!$cdata)
            $string = "<![CDATA[$string]]>";
        return $string;
    }
static function xmlData ( $ string , $ cdata = false ) { $ string = str_replace ( "]]>" , "]]]]><![CDATA[>" , $ string ) ; if ( ! $ cdata ) $ string = "<![CDATA[$string]]>" ; return $ string ; }
Normalize the string for XML tag content data
@param string $string
@param bool $cdata
Normalize the string for XML tag content data