pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dompurify notifications

Pas cb5b46d7 e083ca87

+3 -1
+3 -1
src/components/overlays/notificationsModal/utils/index.ts
··· 1 + import DOMPurify from "dompurify"; 2 + 1 3 import { proxiedFetch } from "@/backend/helpers/fetch"; 2 4 3 5 const DEFAULT_FEEDS = ["/notifications.xml"]; ··· 138 140 }; 139 141 export function formatNotificationDescription(description: string): string { 140 142 return ( 141 - description 143 + DOMPurify.sanitize(description) 142 144 // First, normalize multiple consecutive line breaks to single line breaks 143 145 .replace(/\n{3,}/g, "\n\n") 144 146 // Handle bullet points before paragraph breaks