1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/packages/fork-sax/test/emoji.js

13 lines
343 B
JavaScript
Raw Normal View History

2020-11-05 18:58:23 +02:00
// 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: {}
})