comparison src/log.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 6480697e907b
children a0edd89ddb83
comparison
equal deleted inserted replaced
10731:783ca1f1ebdb 10732:c4cb90065e1d
793 if (!minus_header) 793 if (!minus_header)
794 minus_header = g_strdup(read); 794 minus_header = g_strdup(read);
795 else 795 else
796 minus_header = g_strdup(minus_header + 1); 796 minus_header = g_strdup(minus_header + 1);
797 g_free(read); 797 g_free(read);
798 minus_header2 = gaim_escape_html(minus_header); 798 minus_header2 = g_markup_escape_text(minus_header, -1);
799 g_free(minus_header); 799 g_free(minus_header);
800 return minus_header2; 800 return minus_header2;
801 } 801 }
802 return g_strdup_printf(_("<font color=\"red\"><b>Could not read file: %s</b></font>"), data->path); 802 return g_strdup_printf(_("<font color=\"red\"><b>Could not read file: %s</b></font>"), data->path);
803 } 803 }