Back to Editor Js

Editor.js Sanitizer Module

docs/sanitizer.md

2.31.6576 B
Original Source

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

javascript
clean(taintString, customConfig)

Cleans up the passed taint string

params

ParamTypeDescription
taintStringStringstring that needs to be cleaned
customConfigObjectCan be passed new config per usage (Default: uses default configuration)