more encoding fun

This commit is contained in:
Rolux 2016-01-08 15:05:35 +05:30
commit b94ead03c6
2 changed files with 10 additions and 8 deletions

View file

@ -460,6 +460,7 @@ oml.ui.infoView = function(identifyData) {
Ox.EditableContent({
clickLink: oml.clickLink,
editable: isEditable,
format: Ox.encodeHTMLEntities,
tooltip: isEditable ? oml.getEditTooltip() : '',
value: data.title || 'No Title'
})
@ -564,7 +565,7 @@ oml.ui.infoView = function(identifyData) {
format: function(value) {
return key == 'language'
? formatValue(splitValue(value), key)
: value;
: Ox.encodeHTMLEntities(value);
},
placeholder: formatLight('unknown'),
tooltip: isEditable ? oml.getEditTooltip() : '',