Mercurial > pidgin
comparison src/protocols/msn/utils.c @ 8678:69e30736b9ef
[gaim-migrate @ 9431]
Have MSN unescape HTML entities.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Sat, 17 Apr 2004 14:12:03 +0000 |
| parents | 1e211dde3cae |
| children | 0eb5161ef333 |
comparison
equal
deleted
inserted
replaced
| 8677:cc2ce209cc46 | 8678:69e30736b9ef |
|---|---|
| 256 while (g_ascii_strncasecmp(c, ">", 1)) | 256 while (g_ascii_strncasecmp(c, ">", 1)) |
| 257 c++; | 257 c++; |
| 258 | 258 |
| 259 c++; | 259 c++; |
| 260 } | 260 } |
| 261 } | 261 } else if (*c == '&') { |
| 262 else | 262 if (!g_ascii_strncasecmp(c, "<", 4)) { |
| 263 msg[retcount++] = '<'; | |
| 264 c += 4; | |
| 265 } else if (!g_ascii_strncasecmp(c, ">", 4)) { | |
| 266 msg[retcount++] = '>'; | |
| 267 c += 4; | |
| 268 } else if (!g_ascii_strncasecmp(c, """, 6)) { | |
| 269 msg[retcount++] = '"'; | |
| 270 c += 6; | |
| 271 } else if (!g_ascii_strncasecmp(c, "&", 5)) { | |
| 272 msg[retcount++] = '&'; | |
| 273 c += 5; | |
| 274 } | |
| 275 } else | |
| 263 msg[retcount++] = *c++; | 276 msg[retcount++] = *c++; |
| 264 } | 277 } |
| 265 | 278 |
| 266 if (fontface == NULL) | 279 if (fontface == NULL) |
| 267 fontface = g_strdup("MS Sans Serif"); | 280 fontface = g_strdup("MS Sans Serif"); |
