Merge branch 'fix_model_rendering' of https://github.com/Vayu/swagger-ui into Vayu-fix_model_rendering

This commit is contained in:
Tony Tam
2016-11-23 20:10:21 -08:00

View File

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