Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Html Decimal Code with emoji #46

Open
DanielNovo opened this issue Mar 20, 2024 · 2 comments
Open

Replace Html Decimal Code with emoji #46

DanielNovo opened this issue Mar 20, 2024 · 2 comments

Comments

@DanielNovo
Copy link

Your Question

Hi,

Is it possible to replace html decimal code with emoji?

String originalText = "Hello 😀 World 👍";
String text=EmojiManager.replaceAllEmojis(originalText,Emoji::getHtmlDecimalCode); // "Hello 😀 World 👍"

How to get originalText from text?

@felldo
Copy link
Owner

felldo commented Mar 20, 2024

Hey, this is currently not possible and this is probably a bit more complex to implement with the current state of the code, due to the necessity of a &# before each emoji. So there would be completely different checks to the current ones and therefore it will most likely need completely new code instead of enhancing the current one.

@DanielNovo
Copy link
Author

DanielNovo commented Mar 20, 2024

Hey, this is currently not possible and this is probably a bit more complex to implement with the current state of the code, due to the necessity of a &# before each emoji. So there would be completely different checks to the current ones and therefore it will most likely need completely new code instead of enhancing the current one.

Thanks for your feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants