UNPKG

amuchina

Version:

A work-in-progress HTML sanitizer that strives for: performance like window.Sanitizer, readiness like DOMPurify, and ability to run in a WebWorker like neither of those.

18 lines (13 loc) 348 B
/* MAIN */ type Configuration = { allowComments?: boolean, allowCustomElements?: boolean, allowUnknownMarkup?: boolean, allowElements?: string[], blockElements?: string[], dropElements?: string[], allowAttributes?: Record<string, string[]>, dropAttributes?: Record<string, string[]> }; /* EXPORT */ export type {Configuration};