From 668fc7599baa586c6bed0df60db05c78db736470 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Wed, 3 Jun 2020 21:02:49 +0200 Subject: [PATCH] Allow html objects in autocompletion entries issue9385 review317551002 --- src/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.js b/src/common.js index 30bafecf8c..1aec8fecad 100644 --- a/src/common.js +++ b/src/common.js @@ -3379,7 +3379,7 @@ if (this.format) { return this.format(content); } - return content; + return jQuery('').text(content); }, _format_action: function(content) { if (this.format_action) { @@ -3416,7 +3416,7 @@ 'class': 'completion' }).append(jQuery('', { 'href': '#' - }).text(this._format(value))) + }).append(this._format(value))) .click(function(evt) { evt.preventDefault(); if (this.match_selected) {