Skip to content

A platform for community discussion. Free, open, simple.

UX: apply htmlSafe to topic titles in bookmark notifications (#34826)

Krisf61041bf53fb
diff --git a/app/assets/javascripts/discourse/app/lib/user-menu/bookmark-item.js b/app/assets/javascripts/discourse/app/lib/user-menu/bookmark-item.js
index c66f8db3a06..bf3bd55ff6f 100644
--- a/app/assets/javascripts/discourse/app/lib/user-menu/bookmark-item.js
+++ b/app/assets/javascripts/discourse/app/lib/user-menu/bookmark-item.js
@@ -1,3 +1,4 @@
+import { htmlSafe } from "@ember/template";
import UserMenuBaseItem from "discourse/lib/user-menu/base-item";
import { NO_REMINDER_ICON } from "discourse/models/bookmark";
@@ -32,7 +33,7 @@ export default class UserMenuBookmarkItem extends UserMenuBaseItem {
}
get description() {
- return this.bookmark.fancy_title;
+ return htmlSafe(this.bookmark.fancy_title);
}
get topicId() {