Links in notifications are displayed as raw HTML <a href> tags
Affected version
OS (according to /etc/os-release): Ubuntu 22.04.1 LTS
GNOME Shell: 42.5-0ubuntu1
XOrg and Wayland: yes
Bug summary
According to
$ gdbus call -e -d org.freedesktop.Notifications -o /org/freedesktop/Notifications -m org.freedesktop.Notifications.GetCapabilities
(['actions', 'body', 'body-markup', 'icon-static', 'persistence', 'sound'],)
GNOME supports HTML-like markup in notifications, as described in https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html#markup.
But links are not rendered correctly, showing <a href="http://example.com">...</a>
instead.
Steps to reproduce
- Run
notify-send 'Test notification' 'normal <b>bold</b> <i>italic</i> <u>underline</u> <a href="http://example.com/">wtf</a> done'
What happened
The notification renders as
normal bold italic
underline<a href="http://ex...
What did you expect to happen
The notification should render as
normal bold italic
underlinewtf done
(The "strikethrough" styling should be underline instead, but that's not available in this ticket system.)
Alternatively, if links are not supported, the corresponding tags should be stripped out as described in the specification ("Notification servers that do not support these tags should filter them out"):
normal bold italic
underlinewtf done