MCPcopy Create free account

hub / github.com/cure53/dompurify / functions

Functions119 in github.com/cure53/dompurify

↓ 33 callersFunctionerror
(str)
demos/lib/Mental.js:6933
↓ 10 callersMethodsanitize
* Provides core sanitation functionality. * * @param dirty string or DOM node * @param cfg object * @returns Sanitized TrustedHTML.
src/purify.ts:1726
↓ 8 callersFunctionasi
(useOutput)
demos/lib/Mental.js:6958
↓ 4 callersFunction_forceRemove
(node: Node)
src/purify.ts:831
↓ 3 callersFunction_executeHooks
( hooks: HookFunction[], currentNode: Parameters<T>[0], data: Parameters<T>[1] )
src/purify.ts:1003
↓ 3 callersFunctioncreateDOMPurify
(window: WindowLike = getGlobal())
src/purify.ts:119
↓ 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_createNodeIterator
(root: Node)
src/purify.ts:958
↓ 2 callersFunction_isBasicCustomElement
(tagName: string)
src/purify.ts:1257
↓ 2 callersFunction_isClobbered
(element: Element)
src/purify.ts:978
↓ 2 callersFunction_isNode
(value: unknown)
src/purify.ts:999
↓ 2 callersFunction_isValidAttribute
( lcTag: string, lcName: string, value: string )
src/purify.ts:1157
↓ 2 callersFunction_sanitizeAttributes
(currentNode: Element)
src/purify.ts:1271
↓ 2 callersFunction_sanitizeElements
(currentNode: any)
src/purify.ts:1022
↓ 2 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:99
↓ 2 callersFunctiongetAllBrowsers
()
test/karma.custom-launchers.config.js:223
↓ 2 callersFunctionisValidVariablePart
(c)
demos/lib/Mental.js:6987
↓ 2 callersFunctionloadDOMPurify
( assert, addScriptAttribute, setup, beforeOnLoad, onload )
test/bootstrap-test-suite.js:14
↓ 2 callersFunctionnonStandardComment
()
demos/lib/Mental.js:7343
↓ 2 callersMethodsetConfig
* Set the configuration once. * * @param cfg configuration object
src/purify.ts:1712
↓ 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:67
↓ 1 callersFunctionDOMPurify
(root: WindowLike)
src/purify.ts:120
↓ 1 callersFunction_checkValidNamespace
(element: Element)
src/purify.ts:723
↓ 1 callersFunction_createHooksMap
()
src/purify.ts:105
↓ 1 callersFunction_createTrustedTypesPolicy
( trustedTypes: TrustedTypePolicyFactory, purifyHostElement: HTMLScriptElement )
src/purify.ts:63
↓ 1 callersFunction_initDocument
(dirty: string)
src/purify.ts:883
↓ 1 callersFunction_parseConfig
(cfg: Config = {})
src/purify.ts:472
↓ 1 callersFunction_removeAttribute
(name: string, element: Element)
src/purify.ts:848
↓ 1 callersFunction_sanitizeShadowDOM
(fragment: DocumentFragment)
src/purify.ts:1422
↓ 1 callersMethodaddHook
* Adds a DOMPurify hook. * * @param entryPoint entry point for the hook to add * @param hookFunction function to execute
src/purify.ts:1787
↓ 1 callersFunctionampersand
()
demos/lib/Mental.js:8059
↓ 1 callersFunctionarrayOrAccessorClose
()
demos/lib/Mental.js:7608
↓ 1 callersFunctionarrayOrAccessorOpen
()
demos/lib/Mental.js:7589
↓ 1 callersFunctionasterix
()
demos/lib/Mental.js:8181
↓ 1 callersFunctioncaret
()
demos/lib/Mental.js:8023
↓ 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:138
↓ 1 callersMethodclearConfig
* Removes the configuration.
src/purify.ts:1717
↓ 1 callersFunctionclone
* Shallow clone an object * * @param object - The object to be cloned. * @returns A new object that copies the original.
src/utils.ts:156
↓ 1 callersFunctioncolon
()
demos/lib/Mental.js:7883
↓ 1 callersFunctioncomma
()
demos/lib/Mental.js:7846
↓ 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 callersFunctiondefineStyle
(obj, property)
demos/lib/Mental.js:5864
↓ 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 callersFunctiongetGlobal
()
src/purify.ts:51
↓ 1 callersFunctiongreaterThan
()
demos/lib/Mental.js:8105
↓ 1 callersFunctionhex
()
demos/lib/Mental.js:7509
↓ 1 callersFunctionidentifier
()
demos/lib/Mental.js:7188
↓ 1 callersFunctionisRegexOrFunction
( testValue: unknown )
src/purify.ts:460
↓ 1 callersFunctionisValidVariable
(c)
demos/lib/Mental.js:6983
↓ 1 callersFunctionkeyword
(iLen)
demos/lib/Mental.js:7033
↓ 1 callersFunctionlessThan
()
demos/lib/Mental.js:8145
↓ 1 callersFunctionloadDOMPurifyWithSanityCheck
( assert, addScriptAttribute, setup, onload )
test/bootstrap-test-suite.js:50
↓ 1 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:187
↓ 1 callersFunctionminus
()
demos/lib/Mental.js:8199
↓ 1 callersFunctionmultiComment
()
demos/lib/Mental.js:7367
↓ 1 callersFunctionnewLine
()
demos/lib/Mental.js:7278
↓ 1 callersFunctionnumber
()
demos/lib/Mental.js:7449
↓ 1 callersFunctionnumberOrHex
()
demos/lib/Mental.js:7448
↓ 1 callersFunctionobjWhitelist
(obj, list, noprototype)
demos/lib/Mental.js:6150
↓ 1 callersFunctionparenClose
()
demos/lib/Mental.js:7667
↓ 1 callersFunctionparenOpen
()
demos/lib/Mental.js:7628
↓ 1 callersFunctionpercent
()
demos/lib/Mental.js:8041
↓ 1 callersFunctionperiod
()
demos/lib/Mental.js:7872
↓ 1 callersFunctionpipe
()
demos/lib/Mental.js:8001
↓ 1 callersFunctionplus
()
demos/lib/Mental.js:7308
↓ 1 callersFunctionprintDiagnostics
* Prints the diagnostics to stdout. * @param {ts.Diagnostic[]} diagnostics The diagnostics to report.
typescript/verify.js:103
↓ 1 callersFunctionregex
()
demos/lib/Mental.js:7378
↓ 1 callersMethodremoveHook
* Remove a DOMPurify hook at a given entryPoint * (pops it from the stack of hooks if hook not specified) * * @param entryPoint entry point f
src/purify.ts:1838
↓ 1 callersMethodremoveHooks
* Removes all DOMPurify hooks at a given entryPoint * * @param entryPoint entry point for the hooks to remove
src/purify.ts:1900
↓ 1 callersFunctionrewrite
(code)
demos/lib/Mental.js:6955
↓ 1 callersFunctionrun
()
typescript/verify.js:13
↓ 1 callersFunctionsemicolon
()
demos/lib/Mental.js:7286
↓ 1 callersFunctionsingleComment
()
demos/lib/Mental.js:7355
↓ 1 callersFunctionspace
()
demos/lib/Mental.js:8241
↓ 1 callersFunctionstartQUnit
()
test/jsdom-node.js:19
↓ 1 callersFunctionstring
()
demos/lib/Mental.js:7913
↓ 1 callersFunctionstripNamedTypeExports
()
rollup.config.js:25
↓ 1 callersFunctionternaryOpen
()
demos/lib/Mental.js:7832
↓ 1 callersFunctiontilde
()
demos/lib/Mental.js:7990
↓ 1 callersMethodtoString
()
test/bootstrap-test-suite.js:9
↓ 1 callersFunctionunconstruct
* Creates a new function that constructs an instance of the given constructor function with the provided arguments. * * @param func - The constructo
src/utils.ts:85
↓ 1 callersFunctionverify
* Verifies that a TypeScript project compiles. * @param {string} name The name of the project. * @param {string} directory The project directory. *
typescript/verify.js:45
FunctionALERT
(str)
demos/lib/Mental.js:6303
FunctionCLEAR_INTERVAL
(id)
demos/lib/Mental.js:6266
FunctionCLEAR_TIMEOUT
(id)
demos/lib/Mental.js:6275
FunctionEVAL
(str)
demos/lib/Mental.js:6307
FunctionMental
()
demos/lib/Mental.js:5783
next →1–100 of 119, ranked by callers