diff --git a/docs/_layouts/search.html b/docs/_layouts/search.html
index 355a7e83eeb4..581e3948e649 100644
--- a/docs/_layouts/search.html
+++ b/docs/_layouts/search.html
@@ -47,11 +47,11 @@
Member Results
// Set search term and title:
var searchTerm = decodeURIComponent(parameters["searchTerm"]);
- document.getElementById("searching-for").innerHTML = 'Search results for "' + searchTerm + '"';
+ document.getElementById("searching-for").innerText = 'Search results for "' + searchTerm + '"';
document.title = searchTerm + ' - Search results';
if (!window.Worker) {
- document.getElementById("searching-for").innerHTML =
+ document.getElementById("searching-for").innerText =
"Couldn't search for \"" + searchTerm + "\", " +
"web workers not supported. Please update your browser.";
}