findAndReplaceEmojisInText

external fun findAndReplaceEmojisInText(regexp: dynamic, content: String, callback: (EmojiRegexMatch, String) -> dynamic): String?

Replace emojis in text.

Return

the text with replacements, or null if nothing was replaced.

Parameters

callback

receives the match and the text before it. Return the replacement text, or undefined to keep the match.