Skip to content

Show KDE Connect notification bodies with their quotes intact - #11676

Closed
anant1811 wants to merge 1 commit into
omacom:quattrofrom
anant1811:fix/kdeconnect-notification-entities
Closed

anant1811 wants to merge 1 commit into
omacom:quattrofrom
anant1811:fix/kdeconnect-notification-entities

Conversation

@anant1811

Copy link
Copy Markdown

KDE Connect escapes the title and body it relays from a phone before handing them to KNotification, and they reach the shell escaped a second time: a quotation mark arrives as ", StyledText decodes one layer, and the card shows ". WhatsApp reaction notifications made this visible on every message.

Undo that one layer for KDE Connect only, and only for & ahead of another entity, so the text is left escaped exactly once and the rewrite can never manufacture markup the image stripper did not see.

Fixes #11059

Testing

Seven assertions added to test/shell.d/notifications-test.sh: detection by name and icon, the report's exact body, a body with </>/numeric entities staying escaped once, a bare & left alone, and other apps untouched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKJ7WaM8LCBtL91KJe3wQT

KDE Connect escapes the title and body it relays from a phone before
handing them to KNotification, and they reach the shell escaped a
second time: a quotation mark arrives as ", StyledText decodes
one layer, and the card shows ". WhatsApp reaction notifications
made this visible on every message.

Undo that one layer for KDE Connect only, and only for & ahead of
another entity, so the text is left escaped exactly once and the
rewrite can never manufacture markup the image stripper did not see.

Fixes omacom#11059

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LKJ7WaM8LCBtL91KJe3wQT
@bjarneo

bjarneo commented Sep 21, 2026

Copy link
Copy Markdown
Member

Automated duplication check: this pull request looks similar to #11155, which covers the same notification entity decode. I keep that one open and close this one to consolidate review.

If you feel this is the wrong decision, please open the PR again with a note on the difference.

@bjarneo bjarneo closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KDE Connect notifications display literal &quot; entities

2 participants