protected function escape($string)
    {
        $string = HTMLPurifier_Encoder::cleanUTF8($string);
        $string = htmlspecialchars($string, ENT_COMPAT, 'UTF-8');
        return $string;
    }
protected function escape($string)
    {
        $string = HTMLPurifier_Encoder::cleanUTF8($string);
        $string = htmlspecialchars($string, ENT_COMPAT, 'UTF-8');
        return $string;
    }
protected function escape ( $ string ) { $ string = HTMLPurifier_Encoder :: cleanUTF8 ( $ string ) ; $ string = htmlspecialchars ( $ string , ENT_COMPAT , 'UTF-8' ) ; return $ string ; }
Escapes a string for HTML output.
@param string $string String to escape
@return string
Escapes a string for HTML output .