diff --git a/gio/gdbusintrospection.c b/gio/gdbusintrospection.c index c5f80ec36..0b61275d0 100644 --- a/gio/gdbusintrospection.c +++ b/gio/gdbusintrospection.c @@ -583,12 +583,15 @@ g_dbus_annotation_info_generate_xml (GDBusAnnotationInfo *info, guint indent, GString *string_builder) { + gchar *tmp; guint n; - g_string_append_printf (string_builder, "%*skey, - info->value); + tmp = g_markup_printf_escaped ("%*skey, + info->value); + g_string_append (string_builder, tmp); + g_free (tmp); if (info->annotations == NULL) {