|
@@ -7,10 +7,13 @@ Handlebars.registerHelper('sanitize', function (text) { |
|
|
if (text === undefined) { return ''; } |
|
|
if (text === undefined) { return ''; } |
|
|
|
|
|
|
|
|
result = sanitizeHtml(text, { |
|
|
result = sanitizeHtml(text, { |
|
|
allowedTags: [ 'div', 'span', 'b', 'i', 'em', 'strong', 'a' ], |
|
|
|
|
|
|
|
|
allowedTags: [ 'div', 'span', 'b', 'i', 'em', 'strong', 'a', 'br', 'table', 'tbody', 'tr', 'th', 'td' ], |
|
|
allowedAttributes: { |
|
|
allowedAttributes: { |
|
|
'div': [ 'class' ], |
|
|
'div': [ 'class' ], |
|
|
'span': [ 'class' ], |
|
|
'span': [ 'class' ], |
|
|
|
|
|
'table': [ 'class' ], |
|
|
|
|
|
'td': [ 'class' ], |
|
|
|
|
|
'th': [ 'colspan' ], |
|
|
'a': [ 'href' ] |
|
|
'a': [ 'href' ] |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|