Skip to content

Commit

Permalink
Assert sanitization on multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Sep 6, 2024
1 parent 3a3dfed commit 1b973c3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {of} from 'rxjs';
})
class TestSimpleComponent {}

describe('stripTags', () => {
fdescribe('stripTags', () => {
it('should not touch plain text', () => {
expect(stripTags('')).toBe('');
expect(stripTags(' ')).toBe(' ');
Expand All @@ -43,6 +43,11 @@ describe('stripTags', () => {
expect(stripTags('a<>b')).toBe('ab');
expect(stripTags('a</>b')).toBe('ab');
expect(stripTags('a<>b</>c')).toBe('abc');
expect(
stripTags(`<div
>foo</
div>`),
).toBe('foo');
});
});

Expand Down

0 comments on commit 1b973c3

Please sign in to comment.