ソースを参照

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


読み込み中…
キャンセル
保存