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(/[uE000-uF8FF]/g, '');
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…