Skip to content

Commit

Permalink
UX: escape category title (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot authored Dec 6, 2023
1 parent 2b483df commit 68e6629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion javascripts/discourse/initializers/category-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68e6629

Please sign in to comment.