1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00
joplin/packages/fork-sax/test/emoji.js
2020-11-05 16:58:23 +00:00

13 lines
343 B
JavaScript

// split high-order numeric attributes into surrogate pairs
require(__dirname).test({
xml: '<a>&#x1f525;</a>',
expect: [
[ 'opentagstart', { name: 'A', attributes: {} } ],
[ 'opentag', { name: 'A', attributes: {}, isSelfClosing: false } ],
[ 'text', '\ud83d\udd25' ],
[ 'closetag', 'A' ]
],
strict: false,
opt: {}
})