UNPKG

@blocklet/xss

Version:

blocklet prevent xss attack

14 lines (13 loc) 459 B
import { SanitizeOptions } from './types'; export * from './utils'; export declare function xss(options?: SanitizeOptions): (req: any, res: any, next: Function) => void; declare const _default: { xss: typeof xss; initSanitize: (_options?: SanitizeOptions) => any; isSvgFile: (svgContent: string, file?: { name?: string; type?: string; }) => boolean; sanitizeSvg: (svgContent: string) => string; }; export default _default;