Skip to content

Files

Latest commit

69a5c21 · Feb 28, 2019

History

History
22 lines (14 loc) · 578 Bytes

sanitizer.md

File metadata and controls

22 lines (14 loc) · 578 Bytes

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)