cosmetic changes
This commit is contained in:
parent
cd14cc517c
commit
603475b7a7
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue