[Solved] Improve function to recognize and convert unicode emojis [closed]
Your current use of preg_replace_callback() assumes that all regex matches will be replaced with a link. Since the emojis will not be used as part of a link, the simples solution is to leave the preg_replace_callback() as-is, an add an extra step after that where we do the unicode replacement. function convertAll($str) { $regex = … Read more