jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
17 lines (16 loc) • 670 B
TypeScript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
*/
export type safeOptions = {
removeOnError: boolean;
safeJavaScriptLink: boolean;
removeEventAttributes?: boolean;
safeLinksTarget?: boolean;
};
/**
* Removes dangerous constructs from HTML
*/
export declare function safeHTML(box: HTMLElement | DocumentFragment, options: safeOptions): void;
export declare function sanitizeHTMLElement(elm: Element | DocumentFragment, { safeJavaScriptLink, removeOnError }?: safeOptions): boolean;