From 7f3e9702cc1f399f3da309bf209bfca5bbe06d2a Mon Sep 17 00:00:00 2001 From: Jas Singh Date: Sun, 1 Jun 2025 21:24:16 -0700 Subject: [PATCH] Fix: Escape markup text for notifications. (#976) --- src/components/notifications/Body/index.tsx | 6 +++--- src/components/notifications/Header/index.tsx | 6 +++--- src/components/notifications/helpers.ts | 11 +++++++++++ 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/components/notifications/Body/index.tsx b/src/components/notifications/Body/index.tsx index b879b94..da6d727 100644 --- a/src/components/notifications/Body/index.tsx +++ b/src/components/notifications/Body/index.tsx @@ -1,6 +1,6 @@ import AstalNotifd from 'gi://AstalNotifd?version=0.1'; import { Gtk } from 'astal/gtk3'; -import { notifHasImg } from '../helpers'; +import { notifHasImg, escapeMarkup } from '../helpers'; export const Body = ({ notification }: BodyProps): JSX.Element => { return ( @@ -8,7 +8,7 @@ export const Body = ({ notification }: BodyProps): JSX.Element => {