Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html characters not de-escaped #1399

Open
dev-ardi opened this issue Nov 27, 2024 · 6 comments
Open

html characters not de-escaped #1399

dev-ardi opened this issue Nov 27, 2024 · 6 comments

Comments

@dev-ardi
Copy link

Issue description

If chrome sends a notification: hello <there> -> hello &gt;there&lt; this is not properly handled.

Installation info

  • Version:
    Dunst - A customizable and lightweight notification-daemon 1.11.0 (2024-04-15)
  • Install type: package
  • Window manager / Desktop environment: hyprland
  • Distro: arch
@bynect
Copy link
Member

bynect commented Nov 27, 2024

Please send the dunstrc. Is markup enabled?

@dev-ardi
Copy link
Author

I don't have it

@bynect
Copy link
Member

bynect commented Nov 28, 2024

Try making a dunstrc with
markup set to full or strip and see if it changes

@dev-ardi
Copy link
Author

With markup=full it only gets handled in the body, not in the title.
notify-send 'hello &gt;there&lt;' 'hello &gt;there&lt;'

@bynect
Copy link
Member

bynect commented Nov 28, 2024

I think this is a restriction mandated by the notification standard. The title is treated differently than the body if I remember correctly

@bynect
Copy link
Member

bynect commented Dec 9, 2024

https://specifications.freedesktop.org/notification-spec/latest/markup.html

Body text may contain markup. The markup is XML-based, and consists of a small subset of HTML along with a few additional tags.

Maybe implementing what you are asking is possible without violating the standard?

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

No branches or pull requests

2 participants