public function htmlEncode($string, $quoteStyle = ENT_QUOTES, $charset = 'UTF-8', $doubleEncode = false)
    {
        return htmlspecialchars((string) $string, $quoteStyle, $charset, $doubleEncode);
    }