deps: bump sanitize-html
This commit is contained in:
parent
99559d8fda
commit
0b57f528bf
2 changed files with 8 additions and 2 deletions
|
|
@ -5,7 +5,13 @@ describe('XSS', () => {
|
|||
describe('sanitizeHTML', () => {
|
||||
it('behaves consistently w.r.t. special chars used in emotes', () => {
|
||||
const input = '`^~=| _-,;:!?/."()[]{}@$*\\&#%+á\t';
|
||||
const expected = '`^~=| _-,;:!?/."()[]{}@$*\\\\&#%+á\t';
|
||||
const expected = '`^~=| _-,;:!?/."()[]{}@$*\\&#%+á\t';
|
||||
assert.strictEqual(XSS.sanitizeHTML(input), expected);
|
||||
});
|
||||
|
||||
it('disallows iframes', () => {
|
||||
const input = '<iframe src="https://example.com"></iframe>';
|
||||
const expected = '';
|
||||
assert.strictEqual(XSS.sanitizeHTML(input), expected);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue