libgaim/protocols/jabber/parser.c

changeset 15158
501a55683bf2
parent 14700
98dc3d9a69e3
child 15159
1acf4d03f878
--- a/libgaim/protocols/jabber/parser.c	Sat Dec 02 22:58:10 2006 +0000
+++ b/libgaim/protocols/jabber/parser.c	Sat Dec 02 22:58:59 2006 +0000
@@ -72,10 +72,14 @@
 		xmlnode_set_namespace(node, (const char*) namespace);
 
 		for(i=0; i < nb_attributes * 5; i+=5) {
+			char *txt;
 			int attrib_len = attributes[i+4] - attributes[i+3];
 			char *attrib = g_malloc(attrib_len + 1);
 			memcpy(attrib, attributes[i+3], attrib_len);
 			attrib[attrib_len] = '\0';
+			txt = attrib;
+			attrib = gaim_unescape_html(txt);
+			g_free(txt);
 			xmlnode_set_attrib(node, (const char*) attributes[i], attrib);
 			g_free(attrib);
 		}

mercurial