Преглед изворни кода

Merge branch 'Vayu-fix_model_rendering'

bubble
Tony Tam пре 7 година
родитељ
комит
1d9365d407
1 измењених фајлова са 4 додато и 1 уклоњено
  1. +4
    -1
      src/main/javascript/helpers/handlebars.js

+ 4
- 1
src/main/javascript/helpers/handlebars.js Прегледај датотеку

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


Loading…
Откажи
Сачувај