MCPcopy Create free account

hub / github.com/cure53/DOMPurify / functions

Functions193 in github.com/cure53/DOMPurify

↓ 33 callersFunctionerror
(str)
demos/lib/Mental.js:6933
↓ 15 callersMethodsanitize
* Provides core sanitation functionality. * * @param dirty string or DOM node * @param cfg object * @returns Sanitized TrustedHTML.
src/types.ts:49
↓ 8 callersFunctionasi
(useOutput)
demos/lib/Mental.js:6958
↓ 6 callersFunctioncreateDOMPurify
(window: WindowLike = getGlobal())
src/purify.ts:230
↓ 5 callersFunction_forceRemove
(node: Node)
src/purify.ts:1196
↓ 5 callersFunction_readNodeType
(node: Node)
src/purify.ts:289
↓ 5 callersFunctionclone
* Shallow clone an object * * @param object - The object to be cloned. * @returns A new object that copies the original.
src/utils.ts:171
↓ 4 callersFunction_createTrustedHTML
(html: string)
src/purify.ts:340
↓ 4 callersFunction_isClobbered
(element: Element)
src/purify.ts:1751
↓ 4 callersFunction_isDocumentFragment
(value: unknown)
src/purify.ts:1813
↓ 4 callersFunction_stripTemplateExpressions
(value: string)
src/purify.ts:1677
↓ 4 callersFunctionaddToSet
* Add properties to a lookup table * * @param set - The set to which elements will be added. * @param array - The array containing elements to be a
src/utils.ts:108
↓ 4 callersMethodclearConfig
* Removes the configuration.
src/types.ts:40
↓ 3 callersFunction_executeHooks
( hooks: HookFunction[], currentNode: Parameters<T>[0], data: Parameters<T>[1] )
src/purify.ts:1848
↓ 3 callersFunction_neutralizeSubtree
(root: Node)
src/purify.ts:1429
↓ 3 callersFunction_readNodeName
(node: Node)
src/purify.ts:293
↓ 3 callersFunctionidentifierAsi
()
demos/lib/Mental.js:7177
↓ 3 callersFunctionidentifierStates
()
demos/lib/Mental.js:7224
↓ 3 callersFunctionnonKeyword
()
demos/lib/Mental.js:7254
↓ 3 callersFunctionunicodeEscape
(first)
demos/lib/Mental.js:6991
↓ 2 callersFunctionFUNCTION
()
demos/lib/Mental.js:6195
↓ 2 callersFunction_assertNotInTrustedTypesPolicy
()
src/purify.ts:328
↓ 2 callersFunction_createNodeIterator
(root: Node)
src/purify.ts:1645
↓ 2 callersFunction_executableFindings
(root)
test/test-suite.js:6512
↓ 2 callersFunction_forkSharedAllowlist
( hookList: unknown[], set: T, defaultSet: T, setConfigSet: T | null )
src/purify.ts:2043
↓ 2 callersFunction_isBasicCustomElement
(tagName: string)
src/purify.ts:2388
↓ 2 callersFunction_isNode
(value: unknown)
src/purify.ts:1836
↓ 2 callersFunction_isPatchLinkageAttribute
( lcName: string, lcTag: string )
src/purify.ts:1495
↓ 2 callersFunction_isValidAttribute
( lcTag: string, lcName: string, value: string )
src/purify.ts:2238
↓ 2 callersFunction_matchesNameCheck
( check: unknown, name: string, ...args: unknown[] )
src/purify.ts:1933
↓ 2 callersFunction_removeAttribute
( name: string, element: Element, attr?: Attr | null )
src/purify.ts:1334
↓ 2 callersFunction_sanitizeAttachedShadowRoots
(root: Node)
src/purify.ts:2681
↓ 2 callersFunction_sanitizeAttributes
(currentNode: Element)
src/purify.ts:2484
↓ 2 callersFunction_sanitizeElements
(currentNode: any, root: Node)
src/purify.ts:2111
↓ 2 callersFunction_sanitizeShadowDOM
(fragment: DocumentFragment)
src/purify.ts:2614
↓ 2 callersFunction_stripAttributeNode
( element: Element, attribute: Attr, name: string )
src/purify.ts:1250
↓ 2 callersFunctionisValidVariablePart
(c)
demos/lib/Mental.js:6987
↓ 2 callersFunctionloadDOMPurify
( assert, addScriptAttribute, setup, beforeOnLoad, onload )
test/bootstrap-test-suite.js:14
↓ 2 callersFunctionlookupGetter
* This method automatically checks if the prop is function or getter and behaves accordingly. * * @param object - The object to look up the getter f
src/utils.ts:260
↓ 2 callersFunctionnonStandardComment
()
demos/lib/Mental.js:7343
↓ 2 callersFunctionreachable
(url)
test/browser/legacy-runner.js:56
↓ 2 callersMethodremoveAllHooks
* Removes all DOMPurify hooks.
src/types.ts:228
↓ 2 callersMethodsetConfig
* Set the configuration once. * * @param cfg configuration object
src/types.ts:35
↓ 2 callersFunctionstartQUnit
()
test/jsdom-node.js:21
↓ 2 callersFunctionunapply
* Creates a new function that calls the given function with a specified thisArg and arguments. * * @param func - The function to be wrapped and call
src/utils.ts:76
↓ 1 callersFunction_applyTrustedTypesToAttribute
( lcTag: string, lcName: string, namespaceURI: string | null, value: string )
src/purify.ts:2407
↓ 1 callersFunction_checkHtmlNamespace
( tagName: string, parent: { namespaceURI?: string }, parentTagName: string )
src/purify.ts:1109
↓ 1 callersFunction_checkMathMlNamespace
( tagName: string, parent: { namespaceURI?: string }, parentTagName: string )
src/purify.ts:1078
↓ 1 callersFunction_checkSvgNamespace
( tagName: string, parent: { namespaceURI?: string }, parentTagName: string )
src/purify.ts:1042
↓ 1 callersFunction_checkValidNamespace
(element: Element)
src/purify.ts:1145
↓ 1 callersFunction_createHooksMap
()
src/purify.ts:164
↓ 1 callersFunction_createTrustedScriptURL
(scriptUrl: string)
src/purify.ts:351
↓ 1 callersFunction_createTrustedTypesPolicy
( trustedTypes: TrustedTypePolicyFactory, purifyHostElement: HTMLScriptElement )
src/purify.ts:122
↓ 1 callersFunction_findingsFromHTML
(html)
test/test-suite.js:6536
↓ 1 callersFunction_getDefaultTrustedTypesPolicy
()
src/purify.ts:366
↓ 1 callersFunction_handleHookDetachedNode
( currentNode: Node, root: Node )
src/purify.ts:2087
↓ 1 callersFunction_initDocument
(dirty: string)
src/purify.ts:1572
↓ 1 callersFunction_isUnsafeNode
(currentNode: any, tagName: string)
src/purify.ts:1872
↓ 1 callersFunction_neutralizePatchLinkage
(root: Node)
src/purify.ts:1510
↓ 1 callersFunction_neutralizeRoot
(root: Node)
src/purify.ts:1280
↓ 1 callersFunction_parseConfig
(cfg: Config = {})
src/purify.ts:711
↓ 1 callersFunction_resolveObjectOption
( cfg: Config, key: keyof Config, makeFallback: () => T )
src/purify.ts:219
↓ 1 callersFunction_resolveSetOption
( cfg: Config, key: keyof Config, fallback: Record<string, boolean>, options: { transform: Paramet
src/purify.ts:190
↓ 1 callersFunction_sanitizeDisallowedNode
( currentNode: any, tagName: string, root: Node )
src/purify.ts:1966
↓ 1 callersFunction_scrubTemplateExpressions
(node: Element)
src/purify.ts:1703
↓ 1 callersFunction_setAttributeValue
( currentNode: Element, name: string, namespaceURI: string | null, value: string )
src/purify.ts:2450
↓ 1 callersFunction_stripDisallowedAttributes
(element: Element)
src/purify.ts:1390
↓ 1 callersMethodaddHook
* Adds a DOMPurify hook. * * @param entryPoint entry point for the hook to add * @param hookFunction function to execute
src/types.ts:110
↓ 1 callersFunctionampersand
()
demos/lib/Mental.js:8059
↓ 1 callersFunctionarrayOrAccessorClose
()
demos/lib/Mental.js:7608
↓ 1 callersFunctionarrayOrAccessorOpen
()
demos/lib/Mental.js:7589
↓ 1 callersFunctionassertXssInvariants
(output, dirty)
test/fuzz/sanitize.fast-check.js:293
↓ 1 callersFunctionasterix
()
demos/lib/Mental.js:8181
↓ 1 callersFunctionbuild
(d)
scripts/benchmark.js:81
↓ 1 callersFunctionbuildRawtextBreakout
(tagName)
test/test-suite.js:6848
↓ 1 callersFunctioncaret
()
demos/lib/Mental.js:8023
↓ 1 callersFunctionchain
(leaf, links)
test/test-suite.js:6584
↓ 1 callersFunctioncheckRules
()
demos/lib/Mental.js:8245
↓ 1 callersFunctioncleanArray
* Clean up an array to harden against CSPP * * @param array - The array to be cleaned. * @returns The cleaned version of the array
src/utils.ts:153
↓ 1 callersFunctionclobberHasSink
(s)
test/test-suite.js:5776
↓ 1 callersFunctionclobberPayloads
(name)
test/test-suite.js:5782
↓ 1 callersFunctionclobberReparseSink
(s)
test/test-suite.js:5777
↓ 1 callersFunctioncolon
()
demos/lib/Mental.js:7883
↓ 1 callersFunctioncomma
()
demos/lib/Mental.js:7846
↓ 1 callersFunctioncommentHeavy
(n)
scripts/benchmark.js:128
↓ 1 callersFunctioncompile
* Compiles a TypeScript project. * @param {string} configFileName The file name of the TypeScript config file. * @returns {Promise<ts.Diagnostic[]>}
typescript/verify.js:70
↓ 1 callersFunctionconstWhitelist
(obj, list, transObj)
demos/lib/Mental.js:6173
↓ 1 callersFunctioncreateSandboxedNode
(node)
demos/lib/Mental.js:5876
↓ 1 callersFunctioncurlyClose
()
demos/lib/Mental.js:7768
↓ 1 callersFunctioncurlyOpen
()
demos/lib/Mental.js:7711
↓ 1 callersFunctiondeepTree
(depth, breadth)
scripts/benchmark.js:76
↓ 1 callersFunctiondefineStyle
(obj, property)
demos/lib/Mental.js:5864
↓ 1 callersFunctiondirtyMixed
(n)
scripts/benchmark.js:154
↓ 1 callersFunctiondivide
()
demos/lib/Mental.js:7574
↓ 1 callersFunctionequal
()
demos/lib/Mental.js:8081
↓ 1 callersFunctionexclamation
()
demos/lib/Mental.js:7966
↓ 1 callersFunctionexecute
(code)
demos/lib/Mental.js:6945
↓ 1 callersFunctionfixCjsTypes
* Fixes the CommonJS type declarations file. * @param {string} fileName
scripts/fix-types.js:19
↓ 1 callersFunctionflagValue
(f, dflt)
scripts/benchmark.js:32
↓ 1 callersFunctiongetGlobal
()
src/purify.ts:110
next →1–100 of 193, ranked by callers