MCPcopy Create free account

hub / github.com/cure53/DOMPurify / functions

Functions183 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:166
↓ 5 callersFunction_forceRemove
(node: Node)
src/purify.ts:1137
↓ 4 callersFunction_createTrustedHTML
(html: string)
src/purify.ts:260
↓ 4 callersFunction_isClobbered
(element: Element)
src/purify.ts:1603
↓ 4 callersFunction_isDocumentFragment
(value: unknown)
src/purify.ts:1665
↓ 4 callersFunction_stripTemplateExpressions
(value: string)
src/purify.ts:1533
↓ 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:1700
↓ 3 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
↓ 3 callersFunctionclone
* Shallow clone an object * * @param object - The object to be cloned. * @returns A new object that copies the original.
src/utils.ts:171
↓ 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:248
↓ 2 callersFunction_createNodeIterator
(root: Node)
src/purify.ts:1511
↓ 2 callersFunction_executableFindings
(root)
test/test-suite.js:6374
↓ 2 callersFunction_isBasicCustomElement
(tagName: string)
src/purify.ts:2146
↓ 2 callersFunction_isNode
(value: unknown)
src/purify.ts:1688
↓ 2 callersFunction_isValidAttribute
( lcTag: string, lcName: string, value: string )
src/purify.ts:1990
↓ 2 callersFunction_neutralizeSubtree
(root: Node)
src/purify.ts:1318
↓ 2 callersFunction_removeAttribute
(name: string, element: Element)
src/purify.ts:1236
↓ 2 callersFunction_sanitizeAttachedShadowRoots
(root: Node)
src/purify.ts:2433
↓ 2 callersFunction_sanitizeAttributes
(currentNode: Element)
src/purify.ts:2242
↓ 2 callersFunction_sanitizeElements
(currentNode: any, root: Node)
src/purify.ts:1860
↓ 2 callersFunction_sanitizeShadowDOM
(fragment: DocumentFragment)
src/purify.ts:2363
↓ 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:2165
↓ 1 callersFunction_checkHtmlNamespace
( tagName: string, parent: { namespaceURI?: string }, parentTagName: string )
src/purify.ts:1050
↓ 1 callersFunction_checkMathMlNamespace
( tagName: string, parent: { namespaceURI?: string }, parentTagName: string )
src/purify.ts:1019
↓ 1 callersFunction_checkSvgNamespace
( tagName: string, parent: { namespaceURI?: string }, parentTagName: string )
src/purify.ts:983
↓ 1 callersFunction_checkValidNamespace
(element: Element)
src/purify.ts:1086
↓ 1 callersFunction_createHooksMap
()
src/purify.ts:122
↓ 1 callersFunction_createTrustedScriptURL
(scriptUrl: string)
src/purify.ts:271
↓ 1 callersFunction_createTrustedTypesPolicy
( trustedTypes: TrustedTypePolicyFactory, purifyHostElement: HTMLScriptElement )
src/purify.ts:80
↓ 1 callersFunction_findingsFromHTML
(html)
test/test-suite.js:6398
↓ 1 callersFunction_getDefaultTrustedTypesPolicy
()
src/purify.ts:286
↓ 1 callersFunction_initDocument
(dirty: string)
src/purify.ts:1438
↓ 1 callersFunction_isUnsafeNode
(currentNode: any, tagName: string)
src/purify.ts:1724
↓ 1 callersFunction_neutralizePatchLinkage
(root: Node)
src/purify.ts:1373
↓ 1 callersFunction_neutralizeRoot
(root: Node)
src/purify.ts:1190
↓ 1 callersFunction_parseConfig
(cfg: Config = {})
src/purify.ts:631
↓ 1 callersFunction_resolveSetOption
( cfg: Config, key: keyof Config, fallback: Record<string, boolean>, options: { transform: Paramet
src/purify.ts:148
↓ 1 callersFunction_sanitizeDisallowedNode
( currentNode: any, tagName: string )
src/purify.ts:1780
↓ 1 callersFunction_scrubTemplateExpressions
(node: Element)
src/purify.ts:1559
↓ 1 callersFunction_setAttributeValue
( currentNode: Element, name: string, namespaceURI: string | null, value: string )
src/purify.ts:2208
↓ 1 callersFunction_stripDisallowedAttributes
(element: Element)
src/purify.ts:1275
↓ 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 callersFunctioncaret
()
demos/lib/Mental.js:8023
↓ 1 callersFunctionchain
(leaf, links)
test/test-suite.js:6446
↓ 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:5638
↓ 1 callersFunctionclobberPayloads
(name)
test/test-suite.js:5644
↓ 1 callersFunctionclobberReparseSink
(s)
test/test-suite.js:5639
↓ 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:68
↓ 1 callersFunctiongreaterThan
()
demos/lib/Mental.js:8105
↓ 1 callersFunctionhasFlag
(f)
scripts/benchmark.js:31
↓ 1 callersFunctionhex
()
demos/lib/Mental.js:7509
↓ 1 callersFunctionhttpStatus
(url)
test/browser/legacy-runner.js:45
↓ 1 callersFunctionidentifier
()
demos/lib/Mental.js:7188
↓ 1 callersFunctionisInside
(child, parent)
test/browser/server.js:41
↓ 1 callersFunctionisRegex
(value: unknown)
src/utils.ts:287
↓ 1 callersFunctionisRegexOrFunction
( testValue: unknown )
src/purify.ts:619
↓ 1 callersMethodisValidAttribute
* Checks if an attribute value is valid. * Uses last set config, if any. Otherwise, uses config defaults. * * @param tag Tag name of containi
src/types.ts:102
next →1–100 of 183, ranked by callers