Disabled beautification of tags in the frontend

This commit is contained in:
Veloman Yunkan 2024-09-04 18:15:01 +04:00
parent 196185dd73
commit fbcd160efd
1 changed files with 3 additions and 3 deletions

View File

@ -121,9 +121,9 @@
function generateTagLink(tagValue) {
tagValue = tagValue.toLowerCase();
const humanFriendlyTagValue = humanFriendlyTitle(tagValue);
const tagMessage = $t("filter-by-tag", {TAG: humanFriendlyTagValue});
return `<span class='tag__link' aria-label='${tagMessage}' title='${tagMessage}' data-tag=${tagValue}>${humanFriendlyTagValue}</span>`
const htmlEncodedTagValue = htmlEncode(tagValue);
const tagMessage = $t("filter-by-tag", {TAG: tagValue});
return `<span class='tag__link' aria-label='${tagMessage}' title='${tagMessage}' data-tag=${htmlEncodedTagValue}>${htmlEncodedTagValue}</span>`
}
function generateBookHtml(book, sort = false) {