Ver a proveniência

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

bubble
Valery Yundin há 7 anos
ascendente
cometimento
3bd42590cc
1 ficheiros alterados com 4 adições e 1 eliminações
  1. +4
    -1
      src/main/javascript/helpers/handlebars.js

+ 4
- 1
src/main/javascript/helpers/handlebars.js Ver ficheiro

@@ -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' ]
}
});


Carregando…
Cancelar
Guardar