mirror of
https://github.com/codex-team/editor.js
synced 2024-06-02 14:02:17 +02:00
3f8c7fbb7b
* Sanitizer features * move to ts, use sanitizer module to clean taintstring * Sanitizer is ready * it works * Code refactored (#476) * Use new features for paste handling * Fix asterix * Add types and some comments * Use any type for deepSanitize method * Make sanitize property static and use apiSettings object * Use sanitize for single-block pasting * Fix comment * little updates * rename sanitize in inline-tools docs * Update pattern handling * Use public getter for available tools * Fix typo
581 B
581 B
CodeX Editor Sanitizer Module
The Sanitizer
module represents a set of methods that clears taint strings.
Uses lightweight npm package with simple API html-janitor
Methods
clean
clean(taintString, customConfig)
Cleans up the passed taint string
params
Param | Type | Description |
---|---|---|
taintString | String | string that needs to be cleaned |
customConfig | Object | Can be passed new config per usage (Default: uses default configuration) |