I don't know any about emoji
characters unicode and trying to remove all emoji from input, found a code:
var ranges = [
'\ud83c[\udf00-\udfff]', // U+1F300 to U+1F3FF
'\ud83d[\udc00-\ude4f]', // U+1F400 to U+1F64F
'\ud83d[\ude80-\udeff]' // U+1F680 to U+1F6FF
];
JSFiddle (copy emojis from css section to test)
it will remove some but not new emojis. how can include these new emojis unicode range to this code?
for example this won't remove nerd face
emoji, and the unicode is here