Allow html objects in autocompletion entries

issue9385
review317551002
This commit is contained in:
Sergi Almacellas Abellana
2020-06-03 21:02:49 +02:00
parent 5915d3d01a
commit 668fc7599b
+2 -2
View File
@@ -3379,7 +3379,7 @@
if (this.format) {
return this.format(content);
}
return content;
return jQuery('<span/>').text(content);
},
_format_action: function(content) {
if (this.format_action) {
@@ -3416,7 +3416,7 @@
'class': 'completion'
}).append(jQuery('<a/>', {
'href': '#'
}).text(this._format(value)))
}).append(this._format(value)))
.click(function(evt) {
evt.preventDefault();
if (this.match_selected) {