encode more html entities
This commit is contained in:
parent
fea12d9f57
commit
f173d50902
6 changed files with 14 additions and 13 deletions
|
@ -39,15 +39,15 @@ oml.ui.browser = function() {
|
|||
}).join(', ') + ')',
|
||||
WebkitTransform: 'rotate(45deg)'
|
||||
})
|
||||
.html(
|
||||
.text(
|
||||
ui.iconInfo == 'extension'
|
||||
? data.extension.toUpperCase()
|
||||
: Ox.formatValue(data.size, 'B')
|
||||
) : null,
|
||||
height: height,
|
||||
id: data.id,
|
||||
info: info,
|
||||
title: data.title,
|
||||
info: Ox.encodeHTMLEntities(info),
|
||||
title: Ox.encodeHTMLEntities(data.title),
|
||||
url: '/' + data.id + '/' + ui.icons + '128.jpg?' + data.modified,
|
||||
width: width
|
||||
};
|
||||
|
|
|
@ -28,6 +28,7 @@ oml.ui.folderList = function(options) {
|
|||
width: 16
|
||||
},
|
||||
{
|
||||
format: Ox.encodeHTMLEntities,
|
||||
id: 'name',
|
||||
visible: true,
|
||||
width: ui.sidebarSize - 16 - 48,
|
||||
|
|
|
@ -136,7 +136,7 @@ oml.ui.folders = function() {
|
|||
'part.preferences': 'account'
|
||||
});
|
||||
} else {
|
||||
oml.UI.set({page: 'users'})
|
||||
oml.UI.set({page: 'users'});
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -39,15 +39,15 @@ oml.ui.gridView = function() {
|
|||
MozTransform: 'rotate(45deg)',
|
||||
WebkitTransform: 'rotate(45deg)'
|
||||
})
|
||||
.html(
|
||||
.text(
|
||||
ui.iconInfo == 'extension'
|
||||
? data.extension.toUpperCase()
|
||||
: Ox.formatValue(data.size, 'B')
|
||||
) : null,
|
||||
height: height,
|
||||
id: data.id,
|
||||
info: info,
|
||||
title: data.title,
|
||||
info: Ox.encodeHTMLEntities(info),
|
||||
title: Ox.encodeHTMLEntities(data.title),
|
||||
url: '/' + data.id + '/' + ui.icons + '128.jpg?' + data.modified,
|
||||
width: width
|
||||
};
|
||||
|
|
|
@ -43,19 +43,17 @@ oml.ui.info = function() {
|
|||
.css({
|
||||
fontWeight: 'bold'
|
||||
})
|
||||
.html(data.title || '')
|
||||
.text(data.title || '')
|
||||
.appendTo(that);
|
||||
$('<div>')
|
||||
.css({
|
||||
fontWeight: 'bold'
|
||||
})
|
||||
.html((data.author || []).join(', '))
|
||||
.text((data.author || []).join(', '))
|
||||
.appendTo(that);
|
||||
$('<div>')
|
||||
.css({marginTop: '8px'})
|
||||
.html(
|
||||
Ox.encodeHTMLEntities(result.data.description || '')
|
||||
)
|
||||
.text(result.data.description || '')
|
||||
.appendTo(that);
|
||||
$('<div>')
|
||||
.css({height: '16px'})
|
||||
|
|
|
@ -13,7 +13,9 @@ oml.ui.listView = function() {
|
|||
Ox.isArray(key.type) ? key.type[0]: key.type
|
||||
) > -1 ? 'left' : key.type == 'list' ? 'center' : 'right',
|
||||
defaultWidth: key.columnWidth,
|
||||
format: key.format,
|
||||
format: function(value) {
|
||||
return Ox.encodeHTMLEntities(key.format(value));
|
||||
},
|
||||
id: key.id,
|
||||
operator: key.operator,
|
||||
position: position,
|
||||
|
|
Loading…
Reference in a new issue