Type Aliases
EscapeHandler
EscapeHandler: ((str: string) => string)
OnTagAttrHandler
OnTagAttrHandler: ((tag: string, name: string, value: string, isWhiteAttr: boolean) => string | void)
Type declaration
- (tag: string, name: string, value: string, isWhiteAttr: boolean): string | void
Parameters
tag: string
name: string
value: string
isWhiteAttr: boolean
Returns string | void
OnTagHandler
OnTagHandler: ((tag: string, html: string, options: { isClosing?: boolean; isWhite?: boolean; position?: number; sourcePosition?: number }) => string | void)
Type declaration
- (tag: string, html: string, options: { isClosing?: boolean; isWhite?: boolean; position?: number; sourcePosition?: number }): string | void
Parameters
tag: string
html: string
options: { isClosing?: boolean; isWhite?: boolean; position?: number; sourcePosition?: number }
Optional isClosing?: boolean
Optional isWhite?: boolean
Optional position?: number
Optional sourcePosition?: number
Returns string | void
SafeAttrValueHandler
Safe
Attr
Value
Handler
: ((tag
: string, name
: string, value
: string, cssFilter
: XSS.ICSSFilter) => string)Type declaration
- (tag: string, name: string, value: string, cssFilter: XSS.ICSSFilter): string
Parameters
tag: string
name: string
value: string
Returns string