UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

8 lines (7 loc) 335 B
/** * Sanitizes html string from malicious attributes, values, and scripts * Can also filter elements at the top nesting level by tag names. * @param html - html string to sanitize * @param allowedTopLevelTags - array of allowed tag names */ export declare function sanitize(html: string, allowedTopLevelTags?: string[]): string;