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

Function outer

test/test-suite.js:1803–1806  ·  view source on GitHub ↗
(tagNameCheck)

Source from the content-addressed store, hash-verified

1801 (assert) => {
1802 const dirty = '<foo-bar>a</foo-bar><i>b</i><a href="https://x.test/">c</a>';
1803 const outer = (tagNameCheck) => ({
1804 ALLOWED_TAGS: ['i'],
1805 CUSTOM_ELEMENT_HANDLING: { tagNameCheck },
1806 });
1807 const expected = DOMPurify.sanitize(dirty, outer(/^foo-/));
1808
1809 const nesting = (tagName) => {

Callers 1

test-suite.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected