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) );