From 49fec082f5ead13d4126189447f44df26b99c618 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Tue, 24 Mar 2026 11:24:13 +0100 Subject: [PATCH] Use empty and append to insert the html Signed-off-by: Johannes Marbach --- assets/js/offline-search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/offline-search.js b/assets/js/offline-search.js index 5ae1ce9d..8a346bc1 100644 --- a/assets/js/offline-search.js +++ b/assets/js/offline-search.js @@ -223,7 +223,7 @@ search backend. // content manually. // // [1]: https://github.com/twbs/bootstrap/issues/37206#issuecomment-1259541205 - $(popover.tip.querySelector('.popover-body')).html($html[0]); + $(popover.tip.querySelector('.popover-body')).empty().append($html); popover.update(); }; });