| 442 *end = g_strdup("</f>"); |
442 *end = g_strdup("</f>"); |
| 443 } else if (!purple_utf8_strcasecmp(root->name, "u")) { |
443 } else if (!purple_utf8_strcasecmp(root->name, "u")) { |
| 444 *begin = g_strdup_printf("<f s='%d'>", MSIM_TEXT_UNDERLINE); |
444 *begin = g_strdup_printf("<f s='%d'>", MSIM_TEXT_UNDERLINE); |
| 445 *end = g_strdup("</f>"); |
445 *end = g_strdup("</f>"); |
| 446 } else if (!purple_utf8_strcasecmp(root->name, "a")) { |
446 } else if (!purple_utf8_strcasecmp(root->name, "a")) { |
| 447 const gchar *href, *link_text; |
447 const gchar *href; |
| |
448 gchar *link_text; |
| 448 |
449 |
| 449 href = xmlnode_get_attrib(root, "href"); |
450 href = xmlnode_get_attrib(root, "href"); |
| 450 |
451 |
| 451 if (!href) { |
452 if (!href) { |
| 452 href = xmlnode_get_attrib(root, "HREF"); |
453 href = xmlnode_get_attrib(root, "HREF"); |
| 474 *begin = g_strdup("<a />"); |
475 *begin = g_strdup("<a />"); |
| 475 } |
476 } |
| 476 |
477 |
| 477 /* Sorry, kid. MySpace doesn't support you within <a> tags. */ |
478 /* Sorry, kid. MySpace doesn't support you within <a> tags. */ |
| 478 xmlnode_free(root->child); |
479 xmlnode_free(root->child); |
| |
480 g_free(link_text); |
| 479 root->child = NULL; |
481 root->child = NULL; |
| 480 |
482 |
| 481 *end = g_strdup(""); |
483 *end = g_strdup(""); |
| 482 } else if (!purple_utf8_strcasecmp(root->name, "font")) { |
484 } else if (!purple_utf8_strcasecmp(root->name, "font")) { |
| 483 const gchar *size; |
485 const gchar *size; |