MCPcopy Create free account
hub / github.com/cure53/DOMPurify / nesting

Function nesting

test/test-suite.js:1809–1812  ·  view source on GitHub ↗
(tagName)

Source from the content-addressed store, hash-verified

1807 const expected = DOMPurify.sanitize(dirty, outer(/^foo-/));
1808
1809 const nesting = (tagName) => {
1810 DOMPurify.sanitize('<a href="https://x.test/">n</a>');
1811 return /^foo-/.test(tagName);
1812 };
1813 assert.strictEqual(DOMPurify.sanitize(dirty, outer(nesting)), expected);
1814 }
1815 );

Callers

nothing calls this directly

Calls 1

sanitizeMethod · 0.80

Tested by

no test coverage detected