MCPcopy Create free account

hub / github.com/cure53/DOMPurify / functions

Functions217 in github.com/cure53/DOMPurify

↓ 33 callersFunctionerror
(str)
demos/lib/Mental.js:6933
↓ 17 callersMethodsanitize
* Provides core sanitation functionality. * * @param dirty string or DOM node * @param cfg object * @returns Sanitized TrustedHTML.
src/types.ts:49
↓ 10 callersFunction_readNodeType
(node: Node)
src/purify.ts:259
↓ 10 callersFunctionregExpTest
(regExp: RegExp, value: string)
src/utils.ts:72
↓ 8 callersFunctionasi
(useOutput)
demos/lib/Mental.js:6958
↓ 7 callersFunctioncreateDOMPurify
(window: WindowLike = getGlobal())
src/purify.ts:198
↓ 5 callersFunction_forceRemove
(node: Node)
src/purify.ts:1129
↓ 5 callersFunction_isDocumentFragment
(value: unknown)
src/purify.ts:1798
↓ 5 callersFunction_readNodeName
(node: Node)
src/purify.ts:263
↓ 4 callersFunction_createNodeIterator
( root: Node, characterDataOnly = false )
src/purify.ts:1661
↓ 4 callersFunction_createTrustedHTML
(html: string)
src/purify.ts:315
↓ 4 callersFunction_executeHooks
( hooks: HookFunction[], currentNode: Parameters<T>[0], data: Parameters<T>[1] )
src/purify.ts:1806
↓ 4 callersFunction_isClobbered
(element: Element)
src/purify.ts:1745
↓ 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:114
↓ 4 callersMethodclearConfig
* Removes the configuration.
src/types.ts:40
↓ 3 callersFunction_collectLiveNodes
(root: Node)
src/purify.ts:1339
↓ 3 callersFunction_neutralizeSubtree
(root: Node)
src/purify.ts:1324
↓ 3 callersFunction_sanitizeNode
(node: any, root: Node)
src/purify.ts:2554
↓ 3 callersFunction_scrubOwnCharacterData
(node: Element)
src/purify.ts:1726
↓ 3 callersFunction_stripAttributes
( element: Element, keepAllowed: boolean )
src/purify.ts:1258
↓ 3 callersFunction_stripTemplateExpressions
(value: string)
src/purify.ts:1687
↓ 3 callersFunction_walkTree
( root: Node, visit: (node: Node) => boolean | void, intoShadow = false )
src/purify.ts:1289
↓ 3 callersFunctioncloneSet
* Copy a flat lookup table * * @param set - The set to copy. * @returns A new prototype-free set with the same entries.
src/utils.ts:207
↓ 3 callersFunctionidentifierAsi
()
demos/lib/Mental.js:7177
↓ 3 callersFunctionidentifierStates
()
demos/lib/Mental.js:7224
↓ 3 callersFunctionnonKeyword
()
demos/lib/Mental.js:7254
↓ 3 callersFunctionstartQUnit
()
test/jsdom-node.js:21
↓ 3 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:88
↓ 3 callersFunctionunicodeEscape
(first)
demos/lib/Mental.js:6991
↓ 3 callersFunctionvisit
(node)
test/test-suite.js:1159
↓ 2 callersFunctionFUNCTION
()
demos/lib/Mental.js:6195
↓ 2 callersFunction_assertNotInTrustedTypesPolicy
()
src/purify.ts:303
↓ 2 callersFunction_executableFindings
(root)
test/test-suite.js:7825
↓ 2 callersFunction_forkSharedAllowlist
( hookList: unknown[], set: T, defaultSet: T, setConfigSet: T | null )
src/purify.ts:1979
↓ 2 callersFunction_handleHookDetachedNode
( currentNode: Node, root: Node )
src/purify.ts:2001
↓ 2 callersFunction_isBasicCustomElement
(tagName: string)
src/purify.ts:2280
↓ 2 callersFunction_isNode
(value: unknown)
src/purify.ts:1802
↓ 2 callersFunction_isPatchLinkageAttribute
( lcName: string, lcTag: string )
src/purify.ts:1505
↓ 2 callersFunction_isUnsafeAttributeValue
( name: string, value: string )
src/purify.ts:2374
↓ 2 callersFunction_isValidAttribute
( lcTag: string, lcName: string, value: string )
src/purify.ts:2150
↓ 2 callersFunction_matchesNameCheck
( check: unknown, name: string, ...args: unknown[] )
src/purify.ts:1896
↓ 2 callersFunction_nodeTypeOf
(value: unknown)
src/purify.ts:1785
↓ 2 callersFunction_readNamespaceURI
(element: Element)
src/purify.ts:272
↓ 2 callersFunction_removeAttribute
( name: string, element: Element, attr?: Attr | null )
src/purify.ts:1211
↓ 2 callersFunction_sanitizeAttachedShadowRoots
(root: Node)
src/purify.ts:2611
↓ 2 callersFunction_sanitizeShadowDOM
(fragment: DocumentFragment)
src/purify.ts:2568
↓ 2 callersFunction_stripAttributeNode
( element: Element, attribute: Attr, name: string )
src/purify.ts:1161
↓ 2 callersFunctionclone
* Shallow clone an object * * @param object - The object to be cloned. * @returns A new object that copies the original.
src/utils.ts:177
↓ 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:283
↓ 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 callersFunctionrewriteInlineTypeExports
* Rewrites bundled export statements that use inline `type` modifiers into a * plain value export plus a type-only export: * * export { type Conf
scripts/fix-types.js:29
↓ 2 callersMethodsetConfig
* Set the configuration once. * * @param cfg configuration object
src/types.ts:35
↓ 1 callersFunction_applyTrustedTypesToAttribute
( lcTag: string, lcName: string, namespaceURI: string | null, value: string )
src/purify.ts:2299
↓ 1 callersFunction_checkHtmlNamespace
( tagName: string, parentNamespace: string | null, parentTagName: string )
src/purify.ts:1051
↓ 1 callersFunction_checkMathMlNamespace
( tagName: string, parentNamespace: string | null, parentTagName: string )
src/purify.ts:1020
↓ 1 callersFunction_checkSvgNamespace
( tagName: string, parentNamespace: string | null, parentTagName: string )
src/purify.ts:984
↓ 1 callersFunction_checkValidNamespace
(element: Element)
src/purify.ts:1087
↓ 1 callersFunction_createHooksMap
()
src/purify.ts:140
↓ 1 callersFunction_createTrustedScriptURL
(scriptUrl: string)
src/purify.ts:333
↓ 1 callersFunction_createTrustedTypesPolicy
( trustedTypes: TrustedTypePolicyFactory, purifyHostElement: HTMLScriptElement )
src/purify.ts:98
↓ 1 callersFunction_findingsFromHTML
(html)
test/test-suite.js:7849
↓ 1 callersFunction_getDefaultTrustedTypesPolicy
()
src/purify.ts:345
↓ 1 callersFunction_initDocument
(dirty: string)
src/purify.ts:1585
↓ 1 callersFunction_isUnsafeNode
( currentNode: any, tagName: string, nodeType: number )
src/purify.ts:1831
↓ 1 callersFunction_markVisited
(node: Node)
src/purify.ts:1490
↓ 1 callersFunction_neutralizeDiscarded
(root: Node, before: Node[])
src/purify.ts:1387
↓ 1 callersFunction_neutralizeEscapedElements
( root: Node, before: Node[] )
src/purify.ts:1359
↓ 1 callersFunction_neutralizePatchLinkage
(root: Node)
src/purify.ts:1531
↓ 1 callersFunction_neutralizeRoot
(root: Node)
src/purify.ts:1182
↓ 1 callersFunction_parseConfig
(cfg: Config = {})
src/purify.ts:662
↓ 1 callersFunction_resolveObjectOption
( cfg: Config, key: keyof Config, fallback: T )
src/purify.ts:189
↓ 1 callersFunction_resolveSetOption
( cfg: Config, key: keyof Config, fallback: Record<string, boolean>, options: { transform: Paramet
src/purify.ts:163
↓ 1 callersFunction_sanitizeAttributes
( currentNode: Element, root: Node )
src/purify.ts:2404
↓ 1 callersFunction_sanitizeDisallowedNode
( currentNode: any, tagName: string, root: Node )
src/purify.ts:1921
↓ 1 callersFunction_sanitizeElements
(currentNode: any, root: Node)
src/purify.ts:2025
↓ 1 callersFunction_sanitizeUnvisitedIn
( container: Node, inShadow: boolean, root: Node, original: Set<unknown> )
src/purify.ts:1464
↓ 1 callersFunction_sanitizeUnvisitedNodes
(root: Node, before: Node[])
src/purify.ts:1410
↓ 1 callersFunction_scrubTemplateExpressions
(node: Element)
src/purify.ts:1703
↓ 1 callersFunction_setAttributeValue
( currentNode: Element, name: string, namespaceURI: string | null, value: string )
src/purify.ts:2339
↓ 1 callersFunction_signOutput
(html: string)
src/purify.ts:327
↓ 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:8198
↓ 1 callersFunctioncaret
()
demos/lib/Mental.js:8023
↓ 1 callersFunctionchain
(leaf, links)
test/test-suite.js:7897
↓ 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:159
↓ 1 callersFunctionclobberHasSink
(s)
test/test-suite.js:7038
↓ 1 callersFunctionclobberPayloads
(name)
test/test-suite.js:7044
↓ 1 callersFunctionclobberReparseSink
(s)
test/test-suite.js:7039
↓ 1 callersFunctioncolon
()
demos/lib/Mental.js:7883
next →1–100 of 217, ranked by callers