This should work and show "Test text" - it shows nothing other than the abc title: notify-send "abc" "<a href='https://example.com'>Test</a> text" Swapping quotes for double quotes fixes that one: notify-send "abc" "<a href=\"https://example.com\">Test</a> text" Anything resembling a HTML tag breaks the thing, simple bracket breaks anything after it, all of these render nothing other than the title: notify-send "abc" "<" notify-send "abc" "<a" notify-send "abc" "<hello>" I would expect single quotes to work, and I would expect unfinished or nonexistent HTML tags to not be attempted to be rendered as HTML. --- Operating System: Arch Linux KDE Plasma Version: 6.4.2 KDE Frameworks Version: 6.15.0 Qt Version: 6.9.1 Kernel Version: 6.15.4-arch2-1 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor Memory: 64 GiB of RAM (61.9 GiB usable) Graphics Processor: NVIDIA GeForce RTX 4090 Manufacturer: Gigabyte Technology Co., Ltd. Product Name: X670 AORUS ELITE AX
The spec for notifications is a bit special, it's not full HTML. https://specifications.freedesktop.org/notification-spec/1.3/markup.html It's defined as being valid XML with some additional things. >I would expect single quotes to work, Makes sense. Did this come up in any real application or just testing? I'll test what Gnome does. If they support single quotes, we should too. If they don't, there's no point us doing it as we're just laying a trap for cross-desktop apps. > and I would expect unfinished or nonexistent HTML tags to not be attempted to be rendered as HTML. Unfinished or broken HTML tags is just invalid, defining how we handle something invalid isn't very useful. We should just fix the apps
> I'll test what Gnome does. If they support single quotes, we should too. They don't seem to support any of the "HTML" and it just shows up as plaintext, based on what other people shown me. >I would expect single quotes to work, >> Makes sense. Did this come up in any real application or just testing? In my own private application, was wondering why it was eating my text. > Unfinished or broken HTML tags is just invalid, defining how we handle something invalid isn't very useful. We should just fix the apps It would be nice if the text of the notification actually reflected a broken state if that's the intention("unable to parse notification" as a body, or something of the sort), but I can imagine someone wanting to send a <<<URGENT>>> if one simply wanted to send a plaintext notification with less/greater signs in it and not expecting this breakage.
Yeah, `notify-send foo "<<<URGENT>>>"` is broken for me too.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/7283
Git commit 97fa202d15b40f68c8b8a1fdf0d319f6a89bf3cd by Niccolò Venerandi. Committed on 26/10/2026 at 20:43. Pushed by niccolove into branch 'master'. libnotificationmanager: Accept single-quoted attributes in notification markup M +1 -0 libnotificationmanager/autotests/notifications_test.cpp M +2 -2 libnotificationmanager/notification.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/97fa202d15b40f68c8b8a1fdf0d319f6a89bf3cd
Git commit fa77fc520e2ba376f5d6f16ad7aecea11d97442a by Niccolò Venerandi. Committed on 26/10/2026 at 21:23. Pushed by niccolove into branch 'Plasma/6.8'. libnotificationmanager: Accept single-quoted attributes in notification markup (cherry picked from commit 96697df54fbb4f5d032f434e4e341fb6cff77f37) Co-authored-by: Niccolò Venerandi <niccolo@venerandi.com> M +1 -0 libnotificationmanager/autotests/notifications_test.cpp M +2 -2 libnotificationmanager/notification.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/fa77fc520e2ba376f5d6f16ad7aecea11d97442a