Procházet zdrojové kódy

Merge branch 'Vayu-fix_model_rendering'

bubble
Tony Tam před 7 roky
rodič
revize
1d9365d407
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. +4
    -1
      src/main/javascript/helpers/handlebars.js

+ 4
- 1
src/main/javascript/helpers/handlebars.js Zobrazit soubor

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


Načítá se…
Zrušit
Uložit