Skip to content
Snippets Groups Projects
Commit ea9c2920 authored by Hunter Turcin's avatar Hunter Turcin :lizard:
Browse files

Escape markup in server information

parent 3564da65
No related branches found
No related tags found
1 merge request!7Escape markup in server information
Pipeline #12850 passed
......@@ -776,7 +776,7 @@ void dict_dictd_get_information(GtkWidget *button, DictData *dd)
gtk_window_set_default_size(GTK_WINDOW(dialog), 550, 400);
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_CLOSE);
text = g_strconcat("<tt>", buffer, "</tt>", NULL);
text = g_markup_printf_escaped("<tt>%s</tt>", buffer);
label = gtk_label_new(text);
gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
gtk_widget_set_vexpand(label, TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment