skip to Main Content

bolding target word in Anki – Javascript

Sentence: Wir gehen ins Kino um 19 Uhr. Word: Kino I have this script to make the word kino bolded: <div id="word" hidden>{{Word}}</div> <script> (() => { const word = document.getElementById("word").innerText; const sentenceEl = document.getElementById("sentence"); sentenceEl.innerHTML = sentenceEl.innerHTML.replace( // case-insensitive…

VIEW QUESTION
Back To Top
Search