MCPcopy Create free account

hub / github.com/cure53/DOMPurify / functions

Functions228 in github.com/cure53/DOMPurify

↓ 33 callersFunctionerror
(str)
demos/lib/Mental.js:6933
↓ 18 callersMethodsanitize
* Provides core sanitation functionality. * * @param dirty string or DOM node * @param cfg object * @returns Sanitized TrustedHTML.
src/types.ts:49
↓ 14 callersFunctionregExpTest
(regExp: RegExp, value: string)
src/utils.ts:77
↓ 13 callersFunction_readNodeType
(node: Node)
src/purify.ts:294
↓ 8 callersFunctionasi
(useOutput)
demos/lib/Mental.js:6958
↓ 7 callersFunctioncreateDOMPurify
(window: WindowLike = getGlobal())
src/purify.ts:232
↓ 6 callersFunction_readNodeName
(node: Node)
src/purify.ts:298
↓ 5 callersFunction_forceRemove
(node: Node)
src/purify.ts:1181
↓ 5 callersFunction_isDocumentFragment
(value: unknown)
src/purify.ts:1995
↓ 4 callersFunction_createNodeIterator
( root: Node, characterDataOnly = false )
src/purify.ts:1763
↓ 4 callersFunction_createTrustedHTML
(html: string)
src/purify.ts:358
↓ 4 callersFunction_executeHooks
( hooks: HookFunction[], currentNode: Parameters<T>[0], data: Parameters<T>[1] )
src/purify.ts:2003
↓ 4 callersFunction_isClobbered
(element: Element)
src/purify.ts:1942
↓ 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:119
↓ 4 callersMethodclearConfig
* Removes the configuration.
src/types.ts:40
↓ 3 callersFunction_collectLiveNodes
(root: Node)
src/purify.ts:1393
↓ 3 callersFunction_isNode
(value: unknown)
src/purify.ts:1999
↓ 3 callersFunction_neutralizeSubtree
(root: Node)
src/purify.ts:1378
↓ 3 callersFunction_sanitizeNode
(node: any, root: Node)
src/purify.ts:2779
↓ 3 callersFunction_scrubOwnCharacterData
(node: Element)
src/purify.ts:1894
↓ 3 callersFunction_stripAttributes
( element: Element, keepAllowed: boolean )
src/purify.ts:1312
↓ 3 callersFunction_stripTemplateExpressions
(value: string)
src/purify.ts:1789
↓ 3 callersFunction_walkTree
( root: Node, visit: (node: Node) => boolean | void, intoShadow = false )
src/purify.ts:1343
↓ 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:212
↓ 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:93
↓ 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:346
↓ 2 callersFunction_executableFindings
(root)
test/test-suite.js:8757
↓ 2 callersFunction_forkSharedAllowlist
( hookList: unknown[], set: T, defaultSet: T, setConfigSet: T | null )
src/purify.ts:2207
↓ 2 callersFunction_handleHookDetachedNode
( currentNode: Node, root: Node )
src/purify.ts:2229
↓ 2 callersFunction_isBasicCustomElement
(tagName: string)
src/purify.ts:2499
↓ 2 callersFunction_isPatchLinkageAttribute
( lcName: string, lcTag: string )
src/purify.ts:1607
↓ 2 callersFunction_isUnsafeAttributeValue
( name: string, value: string )
src/purify.ts:2593
↓ 2 callersFunction_isValidAttribute
( lcTag: string, lcName: string, value: string )
src/purify.ts:2369
↓ 2 callersFunction_matchesNameCheck
( check: unknown, name: string, ...args: unknown[] )
src/purify.ts:2124
↓ 2 callersFunction_neutralizeDiscarded
(root: Node, before: Node[])
src/purify.ts:1441
↓ 2 callersFunction_nodeTypeOf
(value: unknown)
src/purify.ts:1982
↓ 2 callersFunction_parseConfig
(cfg: Config = {})
src/purify.ts:714
↓ 2 callersFunction_readNamespaceURI
(element: Element)
src/purify.ts:307
↓ 2 callersFunction_removeAttribute
( name: string, element: Element, attr?: Attr | null )
src/purify.ts:1265
↓ 2 callersFunction_sanitizeAttachedShadowRoots
(root: Node)
src/purify.ts:2836
↓ 2 callersFunction_sanitizeShadowDOM
(fragment: DocumentFragment)
src/purify.ts:2793
↓ 2 callersFunction_stripAttributeNode
( element: Element, attribute: Attr, name: string )
src/purify.ts:1214
↓ 2 callersFunction_unmarkVisited
(node: Node)
src/purify.ts:1586
↓ 2 callersFunctionclone
* Shallow clone an object * * @param object - The object to be cloned. * @returns A new object that copies the original.
src/utils.ts:182
↓ 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:288
↓ 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:230
↓ 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:2518
↓ 1 callersFunction_checkHtmlNamespace
( tagName: string, parentNamespace: string | null, parentTagName: string )
src/purify.ts:1103
↓ 1 callersFunction_checkMathMlNamespace
( tagName: string, parentNamespace: string | null, parentTagName: string )
src/purify.ts:1072
↓ 1 callersFunction_checkSvgNamespace
( tagName: string, parentNamespace: string | null, parentTagName: string )
src/purify.ts:1036
↓ 1 callersFunction_checkValidNamespace
(element: Element)
src/purify.ts:1139
↓ 1 callersFunction_createHooksMap
()
src/purify.ts:174
↓ 1 callersFunction_createTrustedScriptURL
(scriptUrl: string)
src/purify.ts:376
↓ 1 callersFunction_createTrustedTypesPolicy
( trustedTypes: TrustedTypePolicyFactory, purifyHostElement: HTMLScriptElement )
src/purify.ts:132
↓ 1 callersFunction_failClosed
(root: Node, before: Node[])
src/purify.ts:1461
↓ 1 callersFunction_findingsFromHTML
(html)
test/test-suite.js:8781
↓ 1 callersFunction_fosterTableContent
(root: Element)
src/purify.ts:1846
↓ 1 callersFunction_getDefaultTrustedTypesPolicy
()
src/purify.ts:388
↓ 1 callersFunction_initDocument
(dirty: string)
src/purify.ts:1687
↓ 1 callersFunction_isMalformedElement
( currentNode: any, tagName: string )
src/purify.ts:2029
↓ 1 callersFunction_isUnsafeNode
( currentNode: any, tagName: string, nodeType: number )
src/purify.ts:2069
↓ 1 callersFunction_markVisited
(node: Node)
src/purify.ts:1558
↓ 1 callersFunction_neutralizeEscapedElements
( root: Node, before: Node[] )
src/purify.ts:1413
↓ 1 callersFunction_neutralizePatchLinkage
(root: Node)
src/purify.ts:1633
↓ 1 callersFunction_neutralizeRoot
(root: Node)
src/purify.ts:1235
↓ 1 callersFunction_readAttributes
(node: Node)
src/purify.ts:315
↓ 1 callersFunction_resolveObjectOption
( cfg: Config, key: keyof Config, fallback: T )
src/purify.ts:223
↓ 1 callersFunction_resolveSetOption
( cfg: Config, key: keyof Config, fallback: Record<string, boolean>, options: { transform: Paramet
src/purify.ts:197
↓ 1 callersFunction_sanitize
(dirty: any, cfg: Config = {})
src/purify.ts:2889
↓ 1 callersFunction_sanitizeAttributes
( currentNode: Element, root: Node )
src/purify.ts:2624
↓ 1 callersFunction_sanitizeDisallowedNode
( currentNode: any, tagName: string, root: Node )
src/purify.ts:2149
↓ 1 callersFunction_sanitizeElements
(currentNode: any, root: Node)
src/purify.ts:2255
↓ 1 callersFunction_sanitizeUnvisitedIn
( container: Node, inShadow: boolean, root: Node, original: Set<unknown> )
src/purify.ts:1531
↓ 1 callersFunction_sanitizeUnvisitedNodes
(root: Node, before: Node[])
src/purify.ts:1477
↓ 1 callersFunction_scrubTemplateExpressions
(node: Element)
src/purify.ts:1805
↓ 1 callersFunction_setAttributeValue
( currentNode: Element, name: string, namespaceURI: string | null, value: string )
src/purify.ts:2558
↓ 1 callersFunction_signOutput
(html: string)
src/purify.ts:370
↓ 1 callersMethodaddHook
* Adds a DOMPurify hook. * * @param entryPoint entry point for the hook to add * @param hookFunction function to execute
src/types.ts:112
↓ 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
()
test/test-suite.js:1637
↓ 1 callersFunctionbuild
(d)
scripts/benchmark.js:81
↓ 1 callersFunctionbuildRawtextBreakout
(tagName)
test/test-suite.js:9130
↓ 1 callersFunctioncaret
()
demos/lib/Mental.js:8023
next →1–100 of 228, ranked by callers