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;

    }
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;

    }
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 ; }
Return an emoji as a html entity

@param $symbol
@return string
Return an emoji as a html entity