Use <strong> instead of <b>

This commit is contained in:
daudix
2024-07-23 05:44:23 +03:00
parent 2292081c1f
commit a16f02e7a2
2 changed files with 5 additions and 5 deletions

View File

@ -109,15 +109,15 @@
startIndex = word[2];
}
// add <em/> around search terms
// add <strong> around search terms
if (word[1] === TERM_WEIGHT) {
teaser.push("<b>");
teaser.push("<strong>");
}
startIndex = word[2] + word[0].length;
teaser.push(body.substring(word[2], startIndex));
if (word[1] === TERM_WEIGHT) {
teaser.push("</b>");
teaser.push("</strong>");
}
}
teaser.push("…");