Use purple_markup_escape_text instead of the glib version.

Thu, 09 Jul 2009 17:20:08 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Thu, 09 Jul 2009 17:20:08 +0000
changeset 27699
8f6edef17bf5
parent 27698
e19d3ab2ce67
child 27700
d7f8521cf633

Use purple_markup_escape_text instead of the glib version.

finch/gntconv.c file | annotate | diff | comparison | revisions
--- a/finch/gntconv.c	Thu Jul 09 04:40:06 2009 +0000
+++ b/finch/gntconv.c	Thu Jul 09 17:20:08 2009 +0000
@@ -191,10 +191,7 @@
 	}
 	else
 	{
-		char *escape = g_markup_escape_text((*text == '/' ? text + 1 : text), -1);
-		char *apos = purple_strreplace(escape, "&apos;", "'");
-		g_free(escape);
-		escape = apos;
+		char *escape = purple_markup_escape_text((*text == '/' ? text + 1 : text), -1);
 		switch (purple_conversation_get_type(ggconv->active_conv))
 		{
 			case PURPLE_CONV_TYPE_IM:

mercurial