comparison src/protocols/jabber/chat.c @ 10732:c4cb90065e1d

[gaim-migrate @ 12334] "gaim_escape_html (according to Ethan) predates g_markup_escape_text. Current code in Gaim uses both functions. This patch removes gaim_escape_html from the API and replaces all calls in the Gaim tree with g_markup_escape_text. I included a ChangeLog.API note. As far as I can tell, this still works perfectly. This is obviously intended for HEAD only, as it removes a public function." --rlaager this was discussed extensively this morning committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 26 Mar 2005 02:43:49 +0000
parents bf4c9ce533ab
children cef48e318125
comparison
equal deleted inserted replaced
10731:783ca1f1ebdb 10732:c4cb90065e1d
582 } else { 582 } else {
583 const char *cur = gaim_conv_chat_get_topic(GAIM_CONV_CHAT(chat->conv)); 583 const char *cur = gaim_conv_chat_get_topic(GAIM_CONV_CHAT(chat->conv));
584 char *buf, *tmp, *tmp2; 584 char *buf, *tmp, *tmp2;
585 585
586 if(cur) { 586 if(cur) {
587 tmp = gaim_escape_html(cur); 587 tmp = g_markup_escape_text(cur, -1);
588 tmp2 = gaim_markup_linkify(tmp); 588 tmp2 = gaim_markup_linkify(tmp);
589 buf = g_strdup_printf(_("current topic is: %s"), tmp2); 589 buf = g_strdup_printf(_("current topic is: %s"), tmp2);
590 g_free(tmp); 590 g_free(tmp);
591 g_free(tmp2); 591 g_free(tmp2);
592 } else 592 } else