Fix integration of codeblocks in search result description

This commit is contained in:
Guillaume Gomez 2021-06-07 11:12:27 +02:00
parent 5b638c1d37
commit 4ca7a1119e

View File

@ -1024,7 +1024,7 @@ window.initSearch = function(rawSearchIndex) {
var description = document.createElement("div");
description.className = "desc";
var spanDesc = document.createElement("span");
spanDesc.innerText = item.desc + "\u00A0";
spanDesc.insertAdjacentHTML("beforeend", item.desc);
description.appendChild(spanDesc);
wrapper.appendChild(description);