fix address value2html
This commit is contained in:
src
@ -558,10 +558,10 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
||||
**/
|
||||
value: null,
|
||||
/**
|
||||
Callback to perform custom displaying of value in element's text.
|
||||
If <code>null</code>, default input's value2html() will be called.
|
||||
If <code>false</code>, no displaying methods will be called, element's text will no change.
|
||||
Runs under element's scope.
|
||||
Callback to perform custom displaying of value in element's text.
|
||||
If <code>null</code>, default input's value2html() will be called.
|
||||
If <code>false</code>, no displaying methods will be called, element's text will no change.
|
||||
Runs under element's scope.
|
||||
Second parameter __sourceData__ is passed for inputs with source (select, checklist).
|
||||
|
||||
@property display
|
||||
@ -570,7 +570,8 @@ Makes editable any HTML element on the page. Applied as jQuery method.
|
||||
@since 1.2.0
|
||||
@example
|
||||
display: function(value, sourceData) {
|
||||
$(this).html('<b>'+value+'</b>');
|
||||
var escapedValue = $('<div>').text(value).html();
|
||||
$(this).html('<b>'+escapedValue+'</b>');
|
||||
}
|
||||
**/
|
||||
display: null
|
||||
|
Reference in New Issue
Block a user