2018-07-05 20:19:38 +10:00
|
|
|
import * as html from '../html';
|
|
|
|
|
|
|
|
describe('html', () => {
|
2023-05-20 01:13:29 +10:00
|
|
|
describe('unescapeHTML', () => {
|
2018-07-05 20:19:38 +10:00
|
|
|
it('returns unescaped HTML', () => {
|
2024-04-05 18:57:44 +11:00
|
|
|
const output = html.unescapeHTML(
|
|
|
|
'<p>lorem</p><p>ipsum</p><br><br>',
|
|
|
|
);
|
2018-07-05 20:19:38 +10:00
|
|
|
expect(output).toEqual('lorem\n\nipsum\n<br>');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|