| 1517 tag = tag->next; |
1517 tag = tag->next; |
| 1518 } |
1518 } |
| 1519 if(tag) { |
1519 if(tag) { |
| 1520 while(tags) { |
1520 while(tags) { |
| 1521 struct purple_parse_tag *pt = tags->data; |
1521 struct purple_parse_tag *pt = tags->data; |
| 1522 if(xhtml) |
1522 if(xhtml && !pt->ignore) |
| 1523 g_string_append_printf(xhtml, "</%s>", pt->dest_tag); |
1523 g_string_append_printf(xhtml, "</%s>", pt->dest_tag); |
| 1524 if(plain && purple_strequal(pt->src_tag, "a")) { |
1524 if(plain && purple_strequal(pt->src_tag, "a")) { |
| 1525 /* if this is a link, we have to add the url to the plaintext, too */ |
1525 /* if this is a link, we have to add the url to the plaintext, too */ |
| 1526 if (cdata && url && |
1526 if (cdata && url && |
| 1527 (!g_string_equal(cdata, url) && (g_ascii_strncasecmp(url->str, "mailto:", 7) != 0 || |
1527 (!g_string_equal(cdata, url) && (g_ascii_strncasecmp(url->str, "mailto:", 7) != 0 || |