Escape completion content with custom format
Closes #14363 (grafted from cd3931840db95bf96064b7f4f44f068f78df3c76) --HG-- branch : 7.0
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Escape completion content with custom format (issue14363)
|
||||
|
||||
Version 7.0.39 - 2025-11-02
|
||||
---------------------------
|
||||
|
||||
+6
-2
@@ -3840,9 +3840,13 @@
|
||||
},
|
||||
_format: function(content) {
|
||||
if (this.format) {
|
||||
return this.format(content);
|
||||
content = this.format(content);
|
||||
}
|
||||
if (content instanceof jQuery) {
|
||||
return content;
|
||||
} else {
|
||||
return jQuery('<span/>').text(content);
|
||||
}
|
||||
return jQuery('<span/>').text(content);
|
||||
},
|
||||
_format_action: function(content) {
|
||||
if (this.format_action) {
|
||||
|
||||
Reference in New Issue
Block a user