Emojione.ShortnameToImage Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

ShortnameToImage(string, bool, bool, bool)

Takes input containing emoji shortnames and converts it to emoji images.

public static string ShortnameToImage(string str, bool ascii = false, bool inline = false, bool sprite = false)

Parameters

str
string
ascii
bool

true to also convert ascii emoji to images.

inline
bool

true to return inline <svg> instead of <img>.

sprite
bool

true to enable sprite mode instead of individual images.

Returns

string

A string with appropriate html for rendering emoji.