Rollup merge of #86095 - GuillaumeGomez:search-description-codeblock, r=jsha
Search description codeblock The codeblocks are not displayed correctly:  This PR interprets the HTML correctly (and still prevent invalid HTML because of how it inserts it):  r? ```@jsha```
This commit is contained in:
commit
f99a892e6d
2 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue