comparison src/util.c @ 14174:6672fdf310b2

[gaim-migrate @ 16824] This is better. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 18 Aug 2006 01:55:26 +0000
parents d38d8716426c
children
comparison
equal deleted inserted replaced
14173:178540dc0517 14174:6672fdf310b2
875 else if(IS_ENTITY("&gt;")) 875 else if(IS_ENTITY("&gt;"))
876 pln = ">"; 876 pln = ">";
877 else if(IS_ENTITY("&nbsp;")) 877 else if(IS_ENTITY("&nbsp;"))
878 pln = " "; 878 pln = " ";
879 else if(IS_ENTITY("&copy;")) 879 else if(IS_ENTITY("&copy;"))
880 pln = "\251"; 880 pln = "\302\251"; /* or use g_unichar_to_utf8(0xa9); */
881 else if(IS_ENTITY("&quot;")) 881 else if(IS_ENTITY("&quot;"))
882 pln = "\""; 882 pln = "\"";
883 else if(IS_ENTITY("&reg;")) 883 else if(IS_ENTITY("&reg;"))
884 pln = "\256"; 884 pln = "\302\256"; /* or use g_unichar_to_utf8(0xae); */
885 else if(IS_ENTITY("&apos;")) 885 else if(IS_ENTITY("&apos;"))
886 pln = "\'"; 886 pln = "\'";
887 else if(*(text+1) == '#' && (sscanf(text, "&#%u;", &pound) == 1) && 887 else if(*(text+1) == '#' && (sscanf(text, "&#%u;", &pound) == 1) &&
888 pound != 0 && *(text+3+(gint)log10(pound)) == ';') { 888 pound != 0 && *(text+3+(gint)log10(pound)) == ';') {
889 static char buf[7]; 889 static char buf[7];