public static function escape($string, $flag = ENT_COMPAT, $hardEscape = true)
    {
        return htmlspecialchars($string, $flag, static::ENCODING, (bool) $hardEscape);
    }
public static function escape($string, $flag = ENT_COMPAT, $hardEscape = true)
    {
        return htmlspecialchars($string, $flag, static::ENCODING, (bool) $hardEscape);
    }
public static function escape ( $ string , $ flag = ENT_COMPAT , $ hardEscape = true ) { return htmlspecialchars ( $ string , $ flag , static :: ENCODING , ( bool ) $ hardEscape ) ; }
wrapper for htmlspecialchars with utf-8 and ENT_COMPAT set as default

@param string $string
@param int    $flag
@param bool   $hardEscape

@return string
wrapper for htmlspecialchars with utf - 8 and ENT_COMPAT set as default