Escape strings used in markup

This commit is contained in:
Dale Whittaker 2008-07-22 12:37:02 +02:00 committed by Christian Dywan
parent 2b7c0c42d5
commit 3e6f7eeeae

View file

@ -178,9 +178,9 @@ midori_location_entry_set_item (GtkTreeModel* model,
gchar* desc = NULL; gchar* desc = NULL;
if (item->title) if (item->title)
desc = g_strdup_printf ("<b>%s</b> - %s", item->uri, item->title); desc = g_markup_printf_escaped ("<b>%s</b> - %s", item->uri, item->title);
else else
desc = g_strdup_printf ("<b>%s</b>", item->uri); desc = g_markup_printf_escaped ("<b>%s</b>", item->uri);
gtk_list_store_set (GTK_LIST_STORE (model), iter, gtk_list_store_set (GTK_LIST_STORE (model), iter,
FAVICON_COL, item->favicon, URI_COL, item->uri, TITLE_COL, desc, -1); FAVICON_COL, item->favicon, URI_COL, item->uri, TITLE_COL, desc, -1);