Comparing version 0.3.1 to 0.3.2
@@ -5,3 +5,3 @@ { | ||
"typings": "./typings/xss.d.ts", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist", | ||
@@ -8,0 +8,0 @@ "author": "Zongmin Lei <leizongmin@gmail.com> (http://ucdok.com)", |
@@ -89,5 +89,5 @@ /** | ||
export type OnTagHandler = (tag: string, html: string, options: {}) => string; | ||
export type OnTagHandler = (tag: string, html: string, options: {}) => string | void; | ||
export type OnTagAttrHandler = (tag: string, name: string, value: string) => string; | ||
export type OnTagAttrHandler = (tag: string, name: string, value: string) => string | void; | ||
@@ -110,3 +110,3 @@ export type SafeAttrValueHandler = (tag: string, name: string, value: string, cssFilter: ICSSFilter) => string; | ||
isClosing: boolean; | ||
}); | ||
}): string; | ||
remove(html: string): string; | ||
@@ -124,3 +124,3 @@ }; | ||
FilterXSS: typeof FilterXSS; | ||
parseTag(html: string, onTag: (sourcePosition: number, position: number, tag: string, html: string, isClosing: boolean) => string, escapeHtml: EscapeHandler): string; | ||
parseTag(html: string, onTag: (sourcePosition: number, position: number, tag: string, html: string, isClosing: boolean) => string, escapeHtml: XSS.EscapeHandler): string; | ||
parseAttr(html: string, onAttr: (name: string, value: string) => string): string; | ||
@@ -127,0 +127,0 @@ whiteList: XSS.IWhiteList; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123653