Merge pull request #127 from BlackGlory/patch-2

Fix OnTagAttrHandler definition
This commit is contained in:
老雷
2018-04-13 22:17:39 +08:00
committed by GitHub

2
typings/xss.d.ts vendored
View File

@@ -89,7 +89,7 @@ declare namespace XSS {
export type OnTagHandler = (tag: string, html: string, options: {}) => string | void;
export type OnTagAttrHandler = (tag: string, name: string, value: string) => string | void;
export type OnTagAttrHandler = (tag: string, name: string, value: string, isWhiteAttr: boolean) => string | void;
export type SafeAttrValueHandler = (tag: string, name: string, value: string, cssFilter: ICSSFilter) => string;