forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsanitize-html.d.ts
More file actions
27 lines (22 loc) · 732 Bytes
/
sanitize-html.d.ts
File metadata and controls
27 lines (22 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Type definitions for sanitize-html 1.6.0
// Project: https://github.com/punkave/sanitize-html
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "sanitize-html" {
function sanitizeHtml(s: string, opts?: {
allowedTags?: string[];
allowedSchemes?: string[];
allowedAttributes?: { [index: string]: string[] };
allowedClasses?: { [index: string]: string[] };
transformTags?: { [index: string]: any };
exclusiveFilter?: {
[index: string]: (frame: {
tag: string;
attribs: { [index: string]: string };
text: string;
tagPosition: number;
}) => boolean
};
}): string;
export = sanitizeHtml;
}