function _xmlEntities($string) { $string = parent::_xmlEntities($string); if ($this->info['scriptmode']) { $string = str_replace(array("<%", "%>", "<?", "?>"), array("<%", "%>", "<?", "?>"), $string); } return $string; }