We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da2276e + 928bd4f commit 364639eCopy full SHA for 364639e
src/doc/not_found.md
@@ -57,8 +57,12 @@ function populate_rust_search() {
57
58
// #18540, use a single token
59
60
+ var a = document.createElement("a");
61
+ a.href = "http://doc.rust-lang.org/core/?search=" + encodeURIComponent(lt);
62
+ a.textContent = lt;
63
var search = document.getElementById('core-search');
- search.innerHTML = "<a href=\"http://doc.rust-lang.org/core/?search=" + lt + "\">" + lt + "</a>";
64
+ search.innerHTML = "";
65
+ search.appendChild(a);
66
}
67
populate_site_search();
68
populate_rust_search();
0 commit comments