public static function html($symbol)
    {


        if (is_string($symbol) && EmojiDictionary::get($symbol))
            $symbol = EmojiDictionary::get($symbol);

        // In case that multiple unicode sequences are used
        if (is_array($symbol))
        {
            $output = '';

            foreach ($symbol as $sequence)
                $output .= self::html($sequence);

            return $output;
        }

        $symbol = dechex($symbol);

        return '&#x' . $symbol;

    }