You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there's no further explanation on this, so i try myself and create js function
function showsmiley( input) {
var k, len, split_on_unicode, text, val;
if (!input) {
return '';
}
if (!Config.rx_codes) {
Config.init_unified();
}
split_on_unicode = input.split(Config.rx_codes);
for (k = 0, len = split_on_unicode.length; k < len; k++) {
text = split_on_unicode[k];
val = '';
if (Config.rx_codes.test(text)) {
val = Config.reversemap[text];
if (val) {
val = ':' + val + ':';
val = .emojiarea.icons[val]);
}
} else {
// val = document.createTextNode(text);
}
// element.append(val);
}
return input.replace(Config.rx_codes, function(m) {
var $img;
val = Config.reversemap[m];
if (val) {
val = ':' + val + ':'; .emojiarea.createIcon($.emojiarea.icons[val]);
return $img;
} else {
return '';
}
});
};
and this is how to call it
showsmiley(yourunicodeinput);
We create emoji then save it to db, after that how to show the emoji that we saved into p or span tag ?
The text was updated successfully, but these errors were encountered: