mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
69a5c21bb6
* Rename to Editor.js in package, comments and docs * More changes * Done with renaming in code, docs, and comments * Revert renaming of tools org * Update submodules * Changes due comments * Fix double slash * editorjs -> @editorjs/editorjs * Update package.json Co-Authored-By: gohabereg <gohabereg@users.noreply.github.com> * Update webpack.config.js Co-Authored-By: gohabereg <gohabereg@users.noreply.github.com> * Update bundle
578 B
578 B
Editor.js 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) |