How to Parse the Fancy Text From Text Area
06:42 14 Feb 2023

I am facing some issues when copy paste the fancy texts and emojis in a textarea,

Like πŸ˜‹ and πŸ…΅πŸ…°πŸ…½πŸ…²πŸ†ˆ πŸ†ƒπŸ…΄πŸ†‡πŸ†ƒ πŸ…ΆπŸ…΄πŸ…½πŸ…΄πŸ†πŸ…°πŸ†ƒπŸ…ΎπŸ†

I have removed the emojis with following code:

e.content.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g, '')

Also wanted to remove the special fonts and fancy texts as well, but not finding a way.

is there any way around for this, like i did for the emojis.

javascript html regex fonts html-parsing