int i, j, ch, did_out, rb, scanch;
int nest = 0; /* Bracket nesting level */
int blockquote = 0; /* BLOCKQUOTE nesting level */
+ int styletag = 0; /* STYLE tag nesting level */
+ int styletag_start = 0;
int bytes_processed = 0;
char nl[128];
strcat(outbuf, nl);
}
+ else if (!strcasecmp(tag, "STYLE")) {
+ ++styletag;
+ if (styletag == 1) {
+ styletag_start = strlen(outbuf);
+ }
+ }
+
+ else if (!strcasecmp(tag, "/STYLE")) {
+ --styletag;
+ if (styletag == 0) {
+ outbuf[styletag_start] = 0;
+ }
+ }
+
}
else if ((nest > 0) && (strlen(tag)<(sizeof(tag)-1))) {