_xmlEntities() public method

Escape string for output
public _xmlEntities ( $string ) : string
$string
return string
Beispiel #1
0
 function _xmlEntities($string)
 {
     $string = parent::_xmlEntities($string);
     if ($this->info['scriptmode']) {
         $string = str_replace(array("&lt;%", "%&gt;", "&lt;?", "?&gt;"), array("<%", "%>", "<?", "?>"), $string);
     }
     return $string;
 }