parseToHtmlHexadecimal
fun EmojiManager.parseToHtmlHexadecimal(input: String, fitzpatrickAction: FitzpatrickAction = FitzpatrickAction.PARSE): String
Replaces the emoji's unicode occurrences by their html hex representation.
'' will be replaced by
👦
When a fitzpatrick modifier is present with a PARSE or REMOVE action, the modifier will be deleted.
👦🏿
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 hex representation.
Parameters
input
the string to parse
fitzpatrickAction
the action to apply for the fitzpatrick modifiers