mirror of
https://github.com/codex-team/editor.js
synced 2024-06-13 03:12:21 +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
23 lines
578 B
Markdown
23 lines
578 B
Markdown
# 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](https://www.npmjs.com/package/html-janitor)
|
|
|
|
## Methods
|
|
|
|
### clean
|
|
|
|
```javascript
|
|
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)|
|
|
|