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.

12 lines (11 loc) 339 B
type Configuration = { allowComments?: boolean; allowCustomElements?: boolean; allowUnknownMarkup?: boolean; allowElements?: string[]; blockElements?: string[]; dropElements?: string[]; allowAttributes?: Record<string, string[]>; dropAttributes?: Record<string, string[]>; }; export type { Configuration };