Escape completion content with custom format

Closes #14363
(grafted from cd3931840db95bf96064b7f4f44f068f78df3c76)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2025-11-20 17:03:46 +01:00
parent 9278ba3110
commit 22f15e20bb
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
* Escape completion content with custom format (issue14363)
Version 7.0.39 - 2025-11-02
---------------------------
+6 -2
View File
@@ -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) {