mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
allow images in body and comments
This commit is contained in:
parent
4f6ab74e61
commit
e820328bbb
1 changed files with 8 additions and 1 deletions
|
@ -99,7 +99,14 @@ sanitize = function (s) {
|
|||
// console.log('// before sanitization:')
|
||||
// console.log(s)
|
||||
if(Meteor.isServer){
|
||||
var s = sanitizeHtml(s)
|
||||
var s = sanitizeHtml(s, {
|
||||
allowedTags: [
|
||||
'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul',
|
||||
'ol', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike',
|
||||
'code', 'hr', 'br', 'div', 'table', 'thead', 'caption',
|
||||
'tbody', 'tr', 'th', 'td', 'pre', 'img'
|
||||
]
|
||||
});
|
||||
// console.log('// after sanitization:')
|
||||
// console.log(s)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue