editor.js/docs/sanitizer.md
Murod Khaydarov 3f8c7fbb7b
Sanitizer features (#467)
* 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
2018-10-23 10:34:00 +03:00

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)