emoji-picker icon indicating copy to clipboard operation
emoji-picker copied to clipboard

From a string with unicode to imsges

Open mauropucci opened this issue 6 years ago • 4 comments

As in the title i saved on db a string text with unicodes. Now i show it back on the web in a page site i would like to have again all the images saved in it.

How can i parse a string and convert all the unicodes back to images to show them in the correct way ?

Thanks

mauropucci avatar Jun 26 '18 20:06 mauropucci

+1

Gexa avatar Aug 29 '18 08:08 Gexa

+2

DangerD256 avatar Nov 14 '18 13:11 DangerD256

Alright guys, I had the same request and need. To convert the unicode versions back into the same images you see in the Picker, you can do:

window.emojiPicker.appendUnicodeAsImageToElement($("#yourDivID"),"😃")

Replace yourDivID with whatever the id of your element. You can also use getElementByID('yourDivID') instead.

Hope this helps someone!

dominicklee avatar Jun 10 '20 07:06 dominicklee

@mauropucci did you found any solution !?

MuhammadElmahi avatar Jul 28 '20 01:07 MuhammadElmahi