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