--- zenity-2.17.90.orig/src/text.c
+++ zenity-2.17.90/src/text.c
@@ -159,9 +159,11 @@
     case GTK_RESPONSE_CLOSE:
       if (zen_text_data->editable) {
         GtkTextIter start, end;
-				    
+	
         gtk_text_buffer_get_bounds (zen_text_data->buffer, &start, &end);
-        g_print (gtk_text_buffer_get_text (zen_text_data->buffer, &start, &end, 0));
+	gchar **tmp = g_strsplit (gtk_text_buffer_get_text (zen_text_data->buffer, &start, &end, 0), "%", 0);
+        g_print (g_strjoinv ("%%", tmp));
+	g_strfreev (tmp);
       }
       zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK);
       break;
