Files
pics/lib/post/markdown/sanitizeoptions.js

20 lines
310 B
JavaScript

'use strict';
module.exports = {
before: {
allowedTags: [],
allowedAttributes: {}
},
after: {
allowedTags: [ 'span', 'a', 'img', 'small'],
allowedAttributes: {
'a': [ 'href', 'rel', 'class', 'referrerpolicy', 'target' ],
'span': [ 'class' ],
'img': ['src', 'height', 'width']
}
}
};