Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/sanitize-html/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2054,6 +2054,13 @@ describe('sanitizeHtml', function() {
);
});

it('should sanitize away disallowed tags entirely, not quote them', function() {
assert.equal(
sanitizeHtml('<img src="https://dodgy-site.xxx/nsfw.jpeg"/>'),
''
);
});

describe('CVE-2026-44990 regression and raw-text edge cases', function() {
it('should escape raw-text inner content when xmp tag is disallowed and discarded under custom nonTextTags', function() {
assert.strictEqual(
Expand Down
Loading