Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cure53/dompurify
/ functions
Functions
119 in github.com/cure53/dompurify
⨍
Functions
119
◇
Types & classes
10
↓ 33 callers
Function
error
(str)
demos/lib/Mental.js:6933
↓ 10 callers
Method
sanitize
* Provides core sanitation functionality. * * @param dirty string or DOM node * @param cfg object * @returns Sanitized TrustedHTML.
src/purify.ts:1726
↓ 8 callers
Function
asi
(useOutput)
demos/lib/Mental.js:6958
↓ 4 callers
Function
_forceRemove
(node: Node)
src/purify.ts:831
↓ 3 callers
Function
_executeHooks
( hooks: HookFunction[], currentNode: Parameters<T>[0], data: Parameters<T>[1] )
src/purify.ts:1003
↓ 3 callers
Function
createDOMPurify
(window: WindowLike = getGlobal())
src/purify.ts:119
↓ 3 callers
Function
identifierAsi
()
demos/lib/Mental.js:7177
↓ 3 callers
Function
identifierStates
()
demos/lib/Mental.js:7224
↓ 3 callers
Function
nonKeyword
()
demos/lib/Mental.js:7254
↓ 3 callers
Function
unicodeEscape
(first)
demos/lib/Mental.js:6991
↓ 2 callers
Function
FUNCTION
()
demos/lib/Mental.js:6195
↓ 2 callers
Function
_createNodeIterator
(root: Node)
src/purify.ts:958
↓ 2 callers
Function
_isBasicCustomElement
(tagName: string)
src/purify.ts:1257
↓ 2 callers
Function
_isClobbered
(element: Element)
src/purify.ts:978
↓ 2 callers
Function
_isNode
(value: unknown)
src/purify.ts:999
↓ 2 callers
Function
_isValidAttribute
( lcTag: string, lcName: string, value: string )
src/purify.ts:1157
↓ 2 callers
Function
_sanitizeAttributes
(currentNode: Element)
src/purify.ts:1271
↓ 2 callers
Function
_sanitizeElements
(currentNode: any)
src/purify.ts:1022
↓ 2 callers
Function
addToSet
* 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 callers
Function
getAllBrowsers
()
test/karma.custom-launchers.config.js:223
↓ 2 callers
Function
isValidVariablePart
(c)
demos/lib/Mental.js:6987
↓ 2 callers
Function
loadDOMPurify
( assert, addScriptAttribute, setup, beforeOnLoad, onload )
test/bootstrap-test-suite.js:14
↓ 2 callers
Function
nonStandardComment
()
demos/lib/Mental.js:7343
↓ 2 callers
Method
setConfig
* Set the configuration once. * * @param cfg configuration object
src/purify.ts:1712
↓ 2 callers
Function
unapply
* 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 callers
Function
DOMPurify
(root: WindowLike)
src/purify.ts:120
↓ 1 callers
Function
_checkValidNamespace
(element: Element)
src/purify.ts:723
↓ 1 callers
Function
_createHooksMap
()
src/purify.ts:105
↓ 1 callers
Function
_createTrustedTypesPolicy
( trustedTypes: TrustedTypePolicyFactory, purifyHostElement: HTMLScriptElement )
src/purify.ts:63
↓ 1 callers
Function
_initDocument
(dirty: string)
src/purify.ts:883
↓ 1 callers
Function
_parseConfig
(cfg: Config = {})
src/purify.ts:472
↓ 1 callers
Function
_removeAttribute
(name: string, element: Element)
src/purify.ts:848
↓ 1 callers
Function
_sanitizeShadowDOM
(fragment: DocumentFragment)
src/purify.ts:1422
↓ 1 callers
Method
addHook
* Adds a DOMPurify hook. * * @param entryPoint entry point for the hook to add * @param hookFunction function to execute
src/purify.ts:1787
↓ 1 callers
Function
ampersand
()
demos/lib/Mental.js:8059
↓ 1 callers
Function
arrayOrAccessorClose
()
demos/lib/Mental.js:7608
↓ 1 callers
Function
arrayOrAccessorOpen
()
demos/lib/Mental.js:7589
↓ 1 callers
Function
asterix
()
demos/lib/Mental.js:8181
↓ 1 callers
Function
caret
()
demos/lib/Mental.js:8023
↓ 1 callers
Function
checkRules
()
demos/lib/Mental.js:8245
↓ 1 callers
Function
cleanArray
* 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 callers
Method
clearConfig
* Removes the configuration.
src/purify.ts:1717
↓ 1 callers
Function
clone
* Shallow clone an object * * @param object - The object to be cloned. * @returns A new object that copies the original.
src/utils.ts:156
↓ 1 callers
Function
colon
()
demos/lib/Mental.js:7883
↓ 1 callers
Function
comma
()
demos/lib/Mental.js:7846
↓ 1 callers
Function
compile
* Compiles a TypeScript project. * @param {string} configFileName The file name of the TypeScript config file. * @returns {Promise<ts.Diagnostic[]>}
typescript/verify.js:70
↓ 1 callers
Function
constWhitelist
(obj, list, transObj)
demos/lib/Mental.js:6173
↓ 1 callers
Function
createSandboxedNode
(node)
demos/lib/Mental.js:5876
↓ 1 callers
Function
curlyClose
()
demos/lib/Mental.js:7768
↓ 1 callers
Function
curlyOpen
()
demos/lib/Mental.js:7711
↓ 1 callers
Function
defineStyle
(obj, property)
demos/lib/Mental.js:5864
↓ 1 callers
Function
divide
()
demos/lib/Mental.js:7574
↓ 1 callers
Function
equal
()
demos/lib/Mental.js:8081
↓ 1 callers
Function
exclamation
()
demos/lib/Mental.js:7966
↓ 1 callers
Function
execute
(code)
demos/lib/Mental.js:6945
↓ 1 callers
Function
fixCjsTypes
* Fixes the CommonJS type declarations file. * @param {string} fileName
scripts/fix-types.js:19
↓ 1 callers
Function
getGlobal
()
src/purify.ts:51
↓ 1 callers
Function
greaterThan
()
demos/lib/Mental.js:8105
↓ 1 callers
Function
hex
()
demos/lib/Mental.js:7509
↓ 1 callers
Function
identifier
()
demos/lib/Mental.js:7188
↓ 1 callers
Function
isRegexOrFunction
( testValue: unknown )
src/purify.ts:460
↓ 1 callers
Function
isValidVariable
(c)
demos/lib/Mental.js:6983
↓ 1 callers
Function
keyword
(iLen)
demos/lib/Mental.js:7033
↓ 1 callers
Function
lessThan
()
demos/lib/Mental.js:8145
↓ 1 callers
Function
loadDOMPurifyWithSanityCheck
( assert, addScriptAttribute, setup, onload )
test/bootstrap-test-suite.js:50
↓ 1 callers
Function
lookupGetter
* 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 callers
Function
minus
()
demos/lib/Mental.js:8199
↓ 1 callers
Function
multiComment
()
demos/lib/Mental.js:7367
↓ 1 callers
Function
newLine
()
demos/lib/Mental.js:7278
↓ 1 callers
Function
number
()
demos/lib/Mental.js:7449
↓ 1 callers
Function
numberOrHex
()
demos/lib/Mental.js:7448
↓ 1 callers
Function
objWhitelist
(obj, list, noprototype)
demos/lib/Mental.js:6150
↓ 1 callers
Function
parenClose
()
demos/lib/Mental.js:7667
↓ 1 callers
Function
parenOpen
()
demos/lib/Mental.js:7628
↓ 1 callers
Function
percent
()
demos/lib/Mental.js:8041
↓ 1 callers
Function
period
()
demos/lib/Mental.js:7872
↓ 1 callers
Function
pipe
()
demos/lib/Mental.js:8001
↓ 1 callers
Function
plus
()
demos/lib/Mental.js:7308
↓ 1 callers
Function
printDiagnostics
* Prints the diagnostics to stdout. * @param {ts.Diagnostic[]} diagnostics The diagnostics to report.
typescript/verify.js:103
↓ 1 callers
Function
regex
()
demos/lib/Mental.js:7378
↓ 1 callers
Method
removeHook
* 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 callers
Method
removeHooks
* Removes all DOMPurify hooks at a given entryPoint * * @param entryPoint entry point for the hooks to remove
src/purify.ts:1900
↓ 1 callers
Function
rewrite
(code)
demos/lib/Mental.js:6955
↓ 1 callers
Function
run
()
typescript/verify.js:13
↓ 1 callers
Function
semicolon
()
demos/lib/Mental.js:7286
↓ 1 callers
Function
singleComment
()
demos/lib/Mental.js:7355
↓ 1 callers
Function
space
()
demos/lib/Mental.js:8241
↓ 1 callers
Function
startQUnit
()
test/jsdom-node.js:19
↓ 1 callers
Function
string
()
demos/lib/Mental.js:7913
↓ 1 callers
Function
stripNamedTypeExports
()
rollup.config.js:25
↓ 1 callers
Function
ternaryOpen
()
demos/lib/Mental.js:7832
↓ 1 callers
Function
tilde
()
demos/lib/Mental.js:7990
↓ 1 callers
Method
toString
()
test/bootstrap-test-suite.js:9
↓ 1 callers
Function
unconstruct
* 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 callers
Function
verify
* Verifies that a TypeScript project compiles. * @param {string} name The name of the project. * @param {string} directory The project directory. *
typescript/verify.js:45
Function
ALERT
(str)
demos/lib/Mental.js:6303
Function
CLEAR_INTERVAL
(id)
demos/lib/Mental.js:6266
Function
CLEAR_TIMEOUT
(id)
demos/lib/Mental.js:6275
Function
EVAL
(str)
demos/lib/Mental.js:6307
Function
Mental
()
demos/lib/Mental.js:5783
next →
1–100 of 119, ranked by callers