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