Escape HTML in desktop notification messages

This commit is contained in:
Robbert van der Helm
2021-06-23 17:23:45 +02:00
parent 553b4474a7
commit 3b06634e33
2 changed files with 40 additions and 5 deletions
+3 -3
View File
@@ -271,9 +271,9 @@ Configuration load_config_for(const boost::filesystem::path& yabridge_path);
* terminal.
*
* @param title The title (or technically, summary) of the notification.
* @param body The message to display. This can contain line feeds and also
* basic HTML-like formatting, so special characters may need to be escaped.
* The message can also be empty.
* @param body The message to display. This can contain line feeds, and it any
* HTML tags and XML escape sequences will be automatically escaped. The
* message can also be empty.
*
* @return Whether the notification was sent. This will be false if
* `notify-send` is not available.