diff options
Diffstat (limited to 'src/themes/slider')
-rw-r--r-- | src/themes/slider/theme.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c index 86440b0..cf4724a 100644 --- a/src/themes/slider/theme.c +++ b/src/themes/slider/theme.c @@ -513,9 +513,16 @@ void set_notification_text(GtkWindow* nw, const char* summary, const char* body) gtk_label_set_markup(GTK_LABEL(windata->summary_label), str); g_free(str); - quoted = g_markup_escape_text(body, -1); - gtk_label_set_markup(GTK_LABEL(windata->body_label), quoted); - g_free(quoted); + if (strstr(body, "&") || strstr(body, "<") || strstr(body, ">") || strstr(body, "'") || strstr(body, """)) + { + gtk_label_set_markup(GTK_LABEL(windata->body_label), body); + } + else + { + quoted = g_markup_escape_text(body, -1); + gtk_label_set_markup(GTK_LABEL(windata->body_label), quoted); + g_free(quoted); + } if (body == NULL || *body == '\0') { |