decode more html entities

This commit is contained in:
Rolux 2016-01-08 14:35:27 +05:30
parent bdcd935c3e
commit 2f007f19af

View file

@ -640,7 +640,10 @@ oml.ui.infoView = function(identifyData) {
}) })
.bindEvent({ .bindEvent({
submit: function(event) { submit: function(event) {
editMetadata('description', event.value); editMetadata(
'description',
event.value.replace(/<br>/g, '\n')
);
} }
}) })
).appendTo($info); ).appendTo($info);
@ -728,7 +731,7 @@ oml.ui.infoView = function(identifyData) {
if (Ox.contains(arrayKeys, key)) { if (Ox.contains(arrayKeys, key)) {
edit[key] = value ? splitValue(value) : []; edit[key] = value ? splitValue(value) : [];
} else { } else {
edit[key] = value; edit[key] = Ox.decodeHTMLEntities(value);
} }
oml.api.edit(edit, function(result) { oml.api.edit(edit, function(result) {
Ox.Request.clearCache(); Ox.Request.clearCache();