From 603475b7a768cf0bc62b13585b5ef2223c7e85d2 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 27 Feb 2013 13:02:51 +0530 Subject: [PATCH] cosmetic changes --- source/Ox.UI/js/Form/Editable.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Form/Editable.js b/source/Ox.UI/js/Form/Editable.js index 1438f1b3..fe3328e7 100644 --- a/source/Ox.UI/js/Form/Editable.js +++ b/source/Ox.UI/js/Form/Editable.js @@ -101,7 +101,7 @@ Ox.Editable = function(options, self) { // edit will toggle self.options.editing self.options.editing = false; edit(); - }, 0); + }); } function blur(data) { @@ -224,7 +224,8 @@ Ox.Editable = function(options, self) { var value = Ox.clean( self.$input.value().replace(/\n\n+/g, '\0') ).replace(/\0/g, '\n\n').trim(); - return (self.options.type == 'input' + return ( + self.options.type == 'input' ? Ox.encodeHTMLEntities(value) : Ox.sanitizeHTML(value, self.options.tags, self.options.replaceTags) );