mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
732 B
TypeScript
28 lines
732 B
TypeScript
// 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;
|
|
}
|