From 169692be68c773b79645f5988b15d558fb7f73fa Mon Sep 17 00:00:00 2001 From: Sean Mitchell Date: Sun, 28 Jul 2024 17:20:09 -0700 Subject: [PATCH] Use textContent for search results mark --- assets/js/modules/search.js | 2 +- docs/search/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/modules/search.js b/assets/js/modules/search.js index b7c4e91..7a093cb 100644 --- a/assets/js/modules/search.js +++ b/assets/js/modules/search.js @@ -4,7 +4,7 @@ function ready() { var searchResults = document.getElementById('search-results'); - document.getElementById('search-query').innerHTML = 'Search results for ' + searchTerm + ''; + document.querySelector('#search-query mark').textContent = searchTerm; var appendString = ''; diff --git a/docs/search/index.md b/docs/search/index.md index 548b752..11d87a8 100644 --- a/docs/search/index.md +++ b/docs/search/index.md @@ -3,7 +3,7 @@ title: Search Results nav: false --- -

+

Search results for