joypixels / emojione

[Archived] The world's largest independent emoji font. Maintained at https://github.com/joypixels/emoji-toolkit.
https://www.joypixels.com
Other
4.46k stars 535 forks source link

blacklistChars getting ignored #598

Closed jastend closed 6 years ago

jastend commented 6 years ago

Tested with the JS version and PHP version. The blacklistChars option seems to get ignored.

JS Example:

window.emojione = require('emojione');
window.emojione.blacklistChars = '*,#';

return window.emojione.toImage('*');

Observed result:

<img class="emojione" alt="*" title=":asterisk_symbol:" src="https://cdn.jsdelivr.net/emojione/assets/3.1/png/32/002a.png"/>

Expected result:

*
jannikweise commented 6 years ago

I also have the problem that the characters "#" and "*" are replaced by emojis. The solution with the blacklistChars does not work in the current version, because the list was removed in version 3.1.5.

Why was the blacklistChars property removed and is there another solution for this problem?

Abdelhady commented 6 years ago

I have the same problem with the latest php version

caseyahenson commented 6 years ago

This should be repaired in today's 3.1.7 release.