From 7b24011ea139f03b12b6b73f3829778407575033 Mon Sep 17 00:00:00 2001
From: j <0x006A@0x2620.org>
Date: Fri, 9 Jan 2015 18:53:17 +0100
Subject: [PATCH] Ox.Editable tpye=input: on submit value gets piped through
Ox.encodeHTMLEntities, decode before editing
---
source/UI/js/Form/Editable.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/UI/js/Form/Editable.js b/source/UI/js/Form/Editable.js
index 0f5dcc03..5539e02e 100644
--- a/source/UI/js/Form/Editable.js
+++ b/source/UI/js/Form/Editable.js
@@ -202,7 +202,7 @@ Ox.Editable = function(options, self) {
function formatInputValue() {
return self.options.type == 'input'
- ? (self.options.unformat || Ox.identity)(self.options.value)
+ ? (self.options.unformat || Ox.decodeHTMLEntities)(self.options.value)
: self.options.value.replace(/
/g, '\n\n');
}