Skip to content

Commit

Permalink
textContent to innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
kordwarshuis committed Jul 12, 2024
1 parent e3b7c83 commit ff5568d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typesenseInstantSearchInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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').textContent = `<a target="_blank" rel="noopener" href="indexed-in-KERISSE.html">` + timestampContent + `</a>`;
document.querySelector('#index-created-timestamp-target-search-modal').innerHTML = `<a target="_blank" rel="noopener" href="indexed-in-KERISSE.html">` + timestampContent + `</a>`;
} else {
console.log('Element with id "index-created-timestamp-source" not found.');
}
Expand Down

0 comments on commit ff5568d

Please sign in to comment.