summaryrefslogtreecommitdiff
path: root/src/themes/nodoka/nodoka-theme.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/themes/nodoka/nodoka-theme.c')
-rw-r--r--src/themes/nodoka/nodoka-theme.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 628a415..dcb8449 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -891,10 +891,16 @@ 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);
- str = g_strdup_printf(
- "<span color=\"#000000\">%s</span>", quoted);
- g_free(quoted);
+ if (strstr(body, "&amp;") || strstr(body, "&lt;") || strstr(body, "&gt;") || strstr(body, "&apos;") || strstr(body, "&quot;"))
+ {
+ str = g_strdup_printf("<span color=\"#000000\">%s</span>", body);
+ }
+ else
+ {
+ quoted = g_markup_escape_text(body, -1);
+ str = g_strdup_printf("<span color=\"#000000\">%s</span>", quoted);
+ g_free(quoted);
+ }
gtk_label_set_markup(GTK_LABEL(windata->body_label), str);
g_free(str);