editor.js/modules/sanitizer.js
George Berezhnoy d2e755086a Destroy module (#157)
* listeners module added

* Destroy method added

* Destroy method for plugins added

* Delete plugins properties from window obj

* Revert "Delete plugins properties from window obj"

This reverts commit 6c91f81229.

* Twitter and instagram api's destroy

* Scripts destoy added

* Fix

* Replace regex with String.indexOf

* Settings for destroyer
2017-02-13 20:54:18 +03:00

38 lines
626 B
JavaScript

/**
* Codex Sanitizer
*/
module.exports = (function (sanitizer) {
var janitor = require('html-janitor');
/**
* Basic config
*/
var Config = {
BASIC : {
tags: {
p: {},
a: {
href: true,
target: '_blank',
rel: 'nofollow'
},
i: {},
b: {},
strong: {},
em: {},
span: {}
}
}
};
sanitizer.Config = Config;
sanitizer.init = janitor;
return sanitizer;
})({});