WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #33787, comment 4


Ignore:
Timestamp:
09/10/2015 11:30:56 PM (5 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33787, comment 4

    initial v1  
    33You mean this one: https://github.com/twitter/twemoji/blob/gh-pages/twemoji.js#L236? It is generated from http://www.unicode.org/Public/UNIDATA/EmojiSources.txt. We are matching (hex) HTML entities as strings, can probably just get the first column (as array), and do something like:
    44{{{
    5 '/&#x(' . array_join( '|', $codepoints ) . ');/i';
     5'/&#x(' . implode( '|', $codepoints ) . ');/i';
    66}}}
    77