mirror of
https://github.com/codex-team/editor.js
synced 2024-06-22 07:26:47 +02:00
* codex -> codex.editor * ESlint code style * Code lint * fix inline module 'this' call * fixed toolbox leaf * removed empty spaces * caret module code improved
38 lines
622 B
JavaScript
38 lines
622 B
JavaScript
/**
|
|
* Codex Sanitizer
|
|
*/
|
|
|
|
var janitor = require('html-janitor');
|
|
|
|
module.exports = (function (sanitizer) {
|
|
|
|
/**
|
|
* 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;
|
|
|
|
})({}); |