mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 10:50:23 +02:00
15 lines
357 B
TypeScript
15 lines
357 B
TypeScript
|
import {SanitizerConfig} from '../index';
|
||
|
|
||
|
/**
|
||
|
* Describes Editor`s sanitizer API
|
||
|
*/
|
||
|
export interface Sanitizer {
|
||
|
/**
|
||
|
* Clean taint string with html and returns clean string
|
||
|
*
|
||
|
* @param {string} taintString
|
||
|
* @param {SanitizerConfig} config - configuration for sanitizer
|
||
|
*/
|
||
|
clean(taintString: string, config: SanitizerConfig): string;
|
||
|
}
|