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