From f227cb47ce782c482a6fec12ba0064095a3f431c Mon Sep 17 00:00:00 2001 From: kor Date: Fri, 12 Jul 2024 18:10:56 +0200 Subject: [PATCH] Add link to other string, and make string display inline --- src/typesenseInstantSearchInit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/typesenseInstantSearchInit.js b/src/typesenseInstantSearchInit.js index 0c189da..0836f80 100644 --- a/src/typesenseInstantSearchInit.js +++ b/src/typesenseInstantSearchInit.js @@ -154,7 +154,7 @@ const typesenseInstantSearchCreateDomElements = () => { if (timestampElement) { // Extracting and logging the content of the paragraph const timestampContent = timestampElement.textContent; - document.querySelector('#index-created-timestamp-target-search-modal').innerHTML = `` + timestampContent + ``; + document.querySelector('#index-created-timestamp-target-search-modal').textContent = timestampContent; } else { console.log('Element with id "index-created-timestamp-source" not found.'); } @@ -162,7 +162,7 @@ const typesenseInstantSearchCreateDomElements = () => { if (pageCountElement) { // Extracting and logging the content of the paragraph const pageCountContent = pageCountElement.textContent; - document.querySelector('#index-created-page-count-target-search-modal').textContent = pageCountContent; + document.querySelector('#index-created-page-count-target-search-modal').innerHTML = `` + pageCountContent + ``; } else { console.log('Element with id "index-created-page-count-source" not found.'); }