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