+2001-10-26 [paul] 0.6.4claws8
+
+ * src/html.c
+ ignore css and javascript tags in html mail
+ case-insensitive, with or without double-quoted
+ strings
+
2001-10-26 [paul] 0.6.4claws7
* sync with sylpheed 0.6.4cvs1
parser->bufp = p + 3;
return;
}
+ /* because html is not strict regarding case and double-quoting of
+ tags we have to check for both */
/* ignore css stuff */
if (!g_strncasecmp(parser->bufp, "<STYLE type=text/css>", 21)) {
parser->bufp += 21;
parser->bufp = p + 8;
return;
}
+ /* ignore css stuff with double quotes*/
+ if (!g_strncasecmp(parser->bufp, "<STYLE type=\"text/css\">", 23)) {
+ parser->bufp += 23;
+ while ((p = strcasestr(parser->bufp, "</STYLE>")) == NULL)
+ if (html_read_line(parser) == HTML_EOF) return;
+ parser->bufp = p + 8;
+ return;
+ }
+ /* ignore javascipt stuff */
+ if (!g_strncasecmp(parser->bufp, "<SCRIPT language=javascript>", 28)) {
+ parser->bufp += 28;
+ while ((p = strcasestr(parser->bufp, "</SCRIPT>")) == NULL)
+ if (html_read_line(parser) == HTML_EOF) return;
+ parser->bufp = p + 8;
+ return;
+ }
+ /* ignore javascipt stuff with double-quotes */
+ if (!g_strncasecmp(parser->bufp, "<SCRIPT language=\"javascript\">", 30)) {
+ parser->bufp += 30;
+ while ((p = strcasestr(parser->bufp, "</SCRIPT>")) == NULL)
+ if (html_read_line(parser) == HTML_EOF) return;
+ parser->bufp = p + 8;
+ return;
+ }
parser->bufp++;
while ((p = strchr(parser->bufp, '>')) == NULL)