'), false)
})
test('headings, tables, footnotes and links are safe and pass unchanged', () => {
const safe = [
'
Hello
',
'
',
'
See footnote.
',
'
Artykuły 
',
]
for (const html of safe) {
assert.equal(isSafeJournalHtml(html), true, html)
assert.deepEqual(gateJournalHtml(html), { safe: true, html })
}
})
test('words starting with "on" are not handlers without an =', () => {
assert.equal(isSafeJournalHtml('
one of the onions
'), true)
})
test('empty input is safe and empty', () => {
for (const html of [null, undefined, '']) {
assert.equal(isSafeJournalHtml(html), true)
assert.deepEqual(gateJournalHtml(html), { safe: true, html: '' })
}
})