~cytrogen/masto-fe

ref: ebd201752484c6001be92614e9b244d3f4d06e0a masto-fe/app/javascript/mastodon/utils/__tests__/html-test.js -rw-r--r-- 289 bytes
ebd20175 — Georg Gadinger fix Content-Security-Policy when using Azure storage (#2427) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
import * as html from '../html';

describe('html', () => {
  describe('unescapeHTML', () => {
    it('returns unescaped HTML', () => {
      const output = html.unescapeHTML('<p>lorem</p><p>ipsum</p><br>&lt;br&gt;');
      expect(output).toEqual('lorem\n\nipsum\n<br>');
    });
  });
});