UX: escape category title (#27)

This commit is contained in:
Kris 2023-12-06 09:59:42 -05:00 committed by GitHub
parent 2b483df566
commit 68e6629b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@ export default {
function categoryIconsRenderer(category, opts) {
let siteSettings = helperContext().siteSettings;
let descriptionText = get(category, "description_text");
let descriptionText = escapeExpression(
get(category, "description_text")
);
let restricted = get(category, "read_restricted");
let url = opts.url
? opts.url