Node.js based forum software built for the modern web
fix: group descriptions that have links in them on groups listing
Barış Soner Uşaklı287f87d8f96d
diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.jsindex 50e037e4b4..41686d31af 100644--- a/public/src/modules/helpers.common.js+++ b/public/src/modules/helpers.common.js@@ -164,8 +164,8 @@ module.exports = function (utils, Benchpress, tx, relative_path) {return true;}- function stripTags(str) {- return utils.stripHTMLTags(str);+ function stripTags(str, ...args) {+ return utils.stripHTMLTags(str, [...args]);}function buildCategoryIcon(category, size, rounded) {diff --git a/src/views/partials/groups/list.tpl b/src/views/partials/groups/list.tplindex c945dd5e63..b728727850 100644--- a/src/views/partials/groups/list.tpl+++ b/src/views/partials/groups/list.tpl@@ -6,9 +6,8 @@<div class="card-body d-flex flex-column gap-2 h-100 pb-2"><div class="d-flex"><div class="flex-grow-1 fs-6 fw-semibold text-capitalize">{generateGroupDisplayName(@value)}</div>-</div>- <div class="text-sm line-clamp-3 mb-last-0">{{./descriptionParsed}}</div>+ <div class="text-sm line-clamp-3 mb-last-0">{{stripTags(./descriptionParsed)}}</div><div class="d-flex gap-2 align-items-center mt-auto pt-2"><div class="badge border border-gray-300 fw-normal text-body"><i class="text-secondary fa-solid fa-users"></i> {formattedNumber(./memberCount)}</div><span class="badge border border-gray-300 fw-normal text-body">