add option escape
, fixes #377
This commit is contained in:
@@ -100,10 +100,14 @@ $(function(){
|
||||
//collect text of checked boxes
|
||||
value2htmlFinal: function(value, element) {
|
||||
var html = [],
|
||||
checked = $.fn.editableutils.itemsByValue(value, this.sourceData);
|
||||
checked = $.fn.editableutils.itemsByValue(value, this.sourceData),
|
||||
escape = this.options.escape;
|
||||
|
||||
if(checked.length) {
|
||||
$.each(checked, function(i, v) { html.push($.fn.editableutils.escape(v.text)); });
|
||||
$.each(checked, function(i, v) {
|
||||
var text = escape ? $.fn.editableutils.escape(v.text) : v.text;
|
||||
html.push(text);
|
||||
});
|
||||
$(element).html(html.join('<br>'));
|
||||
} else {
|
||||
$(element).empty();
|
||||
|
Reference in New Issue
Block a user