Merge branch 'fix_model_rendering' of https://github.com/Vayu/swagger-ui into Vayu-fix_model_rendering
This commit is contained in:
@@ -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' ]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user