$("#tauschen").click(function() {
$('#blub').val(function(index, value) {
return value.replace('[e-1f60e]', '😎'); // Doesn't work
});
});
$("#tauschen2").click(function() {
$('#blub2').val(function(index, value) {
return value.replace('[e-1f60e]', ''); // Works - but how to convert the given string to an emoji?!
});
});
Given are strings in an imout field like these, representing an emoji: [e-1f60e]
Now I want to display them "live" as emojis, instead of only the code: 😎