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', () => {
|
|
|
|
const output = html.unescapeHTML('<p>lorem</p><p>ipsum</p><br><br>');
|
|
|
|
expect(output).toEqual('lorem\n\nipsum\n<br>');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|