# HG changeset patch # User William Pitcock # Date 1215308762 18000 # Node ID 851b12bf90d242700beab36278e5a9ad7ed244b8 # Parent 225f78715e65538367233e8411c4404fc83afce1 Properly escape all appropriate entities. diff -r 225f78715e65 -r 851b12bf90d2 src/audacious/ui_new.c --- a/src/audacious/ui_new.c Sat Jul 05 17:27:40 2008 -0500 +++ b/src/audacious/ui_new.c Sat Jul 05 20:46:02 2008 -0500 @@ -87,9 +87,12 @@ static void ui_set_current_song_title(gchar *text, gpointer user_data) { - gchar *title = g_strdup_printf("%s", text); - gtk_label_set_text(GTK_LABEL(label_current), title); - g_object_set(G_OBJECT(label_current), "use-markup", TRUE, NULL); + gchar *esc_title = g_markup_escape_text(text, -1); + gchar *title = g_strdup_printf("%s", esc_title); + + gtk_label_set_markup(GTK_LABEL(label_current), title); + + g_free(esc_title); g_free(title); }