isomorphic-dompurify
Version:
Makes it possible to use DOMPurify on server and client in the same way.
20 lines (16 loc) • 1.12 kB
text/typescript
import { DOMPurify as DOMPurify$1 } from 'dompurify';
export { Config, DOMPurify, DocumentFragmentHook, ElementHook, HookName, NodeHook, RemovedAttribute, RemovedElement, UponSanitizeAttributeHook, UponSanitizeAttributeHookEvent, UponSanitizeElementHook, UponSanitizeElementHookEvent, WindowLike } from 'dompurify';
declare const DOMPurify: DOMPurify$1;
declare const sanitize: DOMPurify$1["sanitize"];
declare const isSupported: boolean;
declare const addHook: DOMPurify$1["addHook"];
declare const removeHook: DOMPurify$1["removeHook"];
declare const removeHooks: DOMPurify$1["removeHooks"];
declare const removeAllHooks: DOMPurify$1["removeAllHooks"];
declare const setConfig: DOMPurify$1["setConfig"];
declare const clearConfig: DOMPurify$1["clearConfig"];
declare const isValidAttribute: DOMPurify$1["isValidAttribute"];
declare const version: string;
declare const removed: DOMPurify$1['removed'];
declare function clearWindow(): void;
export { addHook, clearConfig, clearWindow, DOMPurify as default, isSupported, isValidAttribute, removeAllHooks, removeHook, removeHooks, removed, sanitize, setConfig, version };