import { htmlHasBrParagraphBreaks, safelyParseFormattedHtml } from '@/utility/html'; import { parameterize } from '@/utility/string'; describe('HTML', () => { it('safely parses', () => { expect(safelyParseFormattedHtml('
TEXT
')).toBe('TEXT'); expect(safelyParseFormattedHtml('TEXT')).toBe('TEXT'); }); it('detects br-style paragraph breaks', () => { expect(htmlHasBrParagraphBreaks('TEXT