Extend list of allowed tags to fix Model rendering. Fixes 2504

This commit is contained in:
Valery Yundin
2016-11-17 16:50:45 +01:00
parent bf60526e63
commit 3bd42590cc

View File

@@ -7,10 +7,13 @@ Handlebars.registerHelper('sanitize', function (text) {
if (text === undefined) { return ''; }
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: {
'div': [ 'class' ],
'span': [ 'class' ],
'table': [ 'class' ],
'td': [ 'class' ],
'th': [ 'colspan' ],
'a': [ 'href' ]
}
});