editor.js/docs/sanitizer.md
George Berezhnoy 69a5c21bb6
Rename to Editor.js (#625)
* 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
2019-02-28 14:01:32 +03:00

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)