code/libraries/joomlatools/library/template/template.php
public function escape($string)
    {
        if(is_string($string)) {
            $string = htmlspecialchars($string, ENT_COMPAT | ENT_SUBSTITUTE, 'UTF-8', false);
        }

        return $string;
    }
public function escape($string)
    {
        if(is_string($string)) {
            $string = htmlspecialchars($string, ENT_COMPAT | ENT_SUBSTITUTE, 'UTF-8', false);
        }

        return $string;
    }
public function escape ( $ string ) { if ( is_string ( $ string ) ) { $ string = htmlspecialchars ( $ string , ENT_COMPAT | ENT_SUBSTITUTE , 'UTF-8' , false ) ; } return $ string ; }
Escape a string

By default the function uses htmlspecialchars to escape the string

@param string $string String to to be escape
@return string Escaped string
Escape a string