comparison src/html.c @ 5101:a7e9036cd46f

[gaim-migrate @ 5464] this still needs a lot of work committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 10 Apr 2003 21:55:13 +0000
parents 89c0c811befa
children a20a644e0da4
comparison
equal deleted inserted replaced
5100:8655d83e1e1e 5101:a7e9036cd46f
392 xhtml = g_string_append(xhtml, "&lt;"); 392 xhtml = g_string_append(xhtml, "&lt;");
393 c++; 393 c++;
394 } 394 }
395 } else { /* opening tag */ 395 } else { /* opening tag */
396 ALLOW_TAG("a"); 396 ALLOW_TAG("a");
397 ALLOW_TAG("b"); 397 ALLOW_TAG_ALT("b", "strong");
398 ALLOW_TAG("blockquote"); 398 ALLOW_TAG("blockquote");
399 ALLOW_TAG("body"); 399 ALLOW_TAG("body");
400 ALLOW_TAG_ALT("bold", "b"); 400 ALLOW_TAG_ALT("bold", "strong");
401 ALLOW_TAG("br"); 401 ALLOW_TAG("br");
402 ALLOW_TAG("cite"); 402 ALLOW_TAG("cite");
403 ALLOW_TAG("div"); 403 ALLOW_TAG("div");
404 ALLOW_TAG("em"); 404 ALLOW_TAG("em");
405 ALLOW_TAG("font"); 405 ALLOW_TAG("font"); /* FIXME: not valid, need to translate */
406 ALLOW_TAG("h1"); 406 ALLOW_TAG("h1");
407 ALLOW_TAG("h2"); 407 ALLOW_TAG("h2");
408 ALLOW_TAG("h3"); 408 ALLOW_TAG("h3");
409 ALLOW_TAG("h4"); 409 ALLOW_TAG("h4");
410 ALLOW_TAG("h5"); 410 ALLOW_TAG("h5");
411 ALLOW_TAG("h6"); 411 ALLOW_TAG("h6");
412 ALLOW_TAG("head"); 412 ALLOW_TAG("hr"); /* FIXME: not valid, need to skip?? */
413 ALLOW_TAG("hr");
414 ALLOW_TAG("html"); 413 ALLOW_TAG("html");
415 ALLOW_TAG("i"); 414 ALLOW_TAG_ALT("i", "em");
416 ALLOW_TAG_ALT("italic", "i"); 415 ALLOW_TAG_ALT("italic", "em");
417 ALLOW_TAG("li"); 416 ALLOW_TAG("li");
418 ALLOW_TAG("ol"); 417 ALLOW_TAG("ol");
419 ALLOW_TAG("p"); 418 ALLOW_TAG("p");
420 ALLOW_TAG("pre"); 419 ALLOW_TAG("pre");
421 ALLOW_TAG("q"); 420 ALLOW_TAG("q");
422 ALLOW_TAG_ALT("s", "strike"); 421 ALLOW_TAG_ALT("s", "strike"); /* FIXME: see strike */
423 ALLOW_TAG("span"); 422 ALLOW_TAG("span");
424 ALLOW_TAG("strike"); 423 ALLOW_TAG("strike"); /* FIXME: not valid, need to convert */
425 ALLOW_TAG("strong"); 424 ALLOW_TAG("strong");
426 ALLOW_TAG("sub"); 425 ALLOW_TAG("sub"); /* FIXME: not valid, need to convert */
427 ALLOW_TAG("sup"); 426 ALLOW_TAG("sup"); /* FIXME: not valid, need to convert */
428 ALLOW_TAG("title"); 427 ALLOW_TAG("u"); /* FIXME: need to convert */
429 ALLOW_TAG("u"); 428 ALLOW_TAG_ALT("underline","u"); /* FIXME: need to convert */
430 ALLOW_TAG_ALT("underline","u");
431 ALLOW_TAG("ul"); 429 ALLOW_TAG("ul");
432 430
433 if(!g_ascii_strncasecmp(c, "<!--", strlen("<!--"))) { 431 if(!g_ascii_strncasecmp(c, "<!--", strlen("<!--"))) {
434 char *p = strstr(c + strlen("<!--"), "-->"); 432 char *p = strstr(c + strlen("<!--"), "-->");
435 if(p) { 433 if(p) {