str.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2580-\u27BF]|\uD83E[\uDD10-\uDDFF])/g, '');

 

참고

https://stackoverflow.com/questions/10992921/how-to-remove-emoji-code-using-javascript

 

How to remove emoji code using javascript?

How do I remove emoji code using JavaScript? I thought I had taken care of it using the code below, but I still have characters like 🔴. function removeInvalidChars() { return this.replace(/[\...

stackoverflow.com

 

+ Recent posts