diff 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
line wrap: on
line diff
--- a/src/html.c	Thu Apr 10 21:27:58 2003 +0000
+++ b/src/html.c	Thu Apr 10 21:55:13 2003 +0000
@@ -394,40 +394,38 @@
 				}
 			} else { /* opening tag */
 				ALLOW_TAG("a");
-				ALLOW_TAG("b");
+				ALLOW_TAG_ALT("b", "strong");
 				ALLOW_TAG("blockquote");
 				ALLOW_TAG("body");
-				ALLOW_TAG_ALT("bold", "b");
+				ALLOW_TAG_ALT("bold", "strong");
 				ALLOW_TAG("br");
 				ALLOW_TAG("cite");
 				ALLOW_TAG("div");
 				ALLOW_TAG("em");
-				ALLOW_TAG("font");
+				ALLOW_TAG("font"); /* FIXME: not valid, need to translate */
 				ALLOW_TAG("h1");
 				ALLOW_TAG("h2");
 				ALLOW_TAG("h3");
 				ALLOW_TAG("h4");
 				ALLOW_TAG("h5");
 				ALLOW_TAG("h6");
-				ALLOW_TAG("head");
-				ALLOW_TAG("hr");
+				ALLOW_TAG("hr"); /* FIXME: not valid, need to skip?? */
 				ALLOW_TAG("html");
-				ALLOW_TAG("i");
-				ALLOW_TAG_ALT("italic", "i");
+				ALLOW_TAG_ALT("i", "em");
+				ALLOW_TAG_ALT("italic", "em");
 				ALLOW_TAG("li");
 				ALLOW_TAG("ol");
 				ALLOW_TAG("p");
 				ALLOW_TAG("pre");
 				ALLOW_TAG("q");
-				ALLOW_TAG_ALT("s", "strike");
+				ALLOW_TAG_ALT("s", "strike"); /* FIXME: see strike */
 				ALLOW_TAG("span");
-				ALLOW_TAG("strike");
+				ALLOW_TAG("strike"); /* FIXME: not valid, need to convert */
 				ALLOW_TAG("strong");
-				ALLOW_TAG("sub");
-				ALLOW_TAG("sup");
-				ALLOW_TAG("title");
-				ALLOW_TAG("u");
-				ALLOW_TAG_ALT("underline","u");
+				ALLOW_TAG("sub"); /* FIXME: not valid, need to convert */
+				ALLOW_TAG("sup"); /* FIXME: not valid, need to convert */
+				ALLOW_TAG("u"); /* FIXME: need to convert */
+				ALLOW_TAG_ALT("underline","u"); /* FIXME: need to convert */
 				ALLOW_TAG("ul");
 
 				if(!g_ascii_strncasecmp(c, "<!--", strlen("<!--"))) {