mathiasbynens / he

A robust HTML entity encoder/decoder written in JavaScript.
https://mths.be/he
MIT License
3.45k stars 254 forks source link

Ignore emojis #33

Closed garrettg123 closed 9 years ago

garrettg123 commented 9 years ago

Is there a way to ignore emojis, like

he.encode('You\'re so young 😏', { ignoreEmoji: true })
mathiasbynens commented 9 years ago

No. Why would you want to?

anko commented 9 years ago

Filter them yourself, maybe with a regex.

mathiasbynens commented 9 years ago

https://github.com/mathiasbynens/emoji-regex