parseToHtmlDecimal

fun EmojiManager.parseToHtmlDecimal(input: String, fitzpatrickAction: FitzpatrickAction = FitzpatrickAction.PARSE): String

Replaces the emoji's unicode occurrences by their html representation.

😄 will be replaced by 😄

When a fitzpatrick modifier is present with a PARSE or REMOVE action, the modifier will be deleted from the string.

👦🏿 will be replaced by 👦

When a fitzpatrick modifier is present with a IGNORE action, the modifier will be ignored and will remain in the string.

👦🏿 will be replaced by 👦🏿

Return

the string with the emojis replaced by their html decimal representation.

Parameters

input

the string to parse

fitzpatrickAction

the action to apply for the fitzpatrick modifiers