{{o.content | formatHtml}}
{{o.author.name}}
{{o.pubDate | formatDate}}
{{parseInt(o.viewCount) | bigNumberTransform}}
Streaming HTML parser 是一个 C 语言的 HTML 解析器。 示例代码 #include #include int main(void) { unsigned int getchar_ret; htmlparser_ctx *parser = htmlparser_new(); while((getchar_ret = getchar()) != EOF) { char c = (char)getchar_ret; /* If we received a '$' character, we output the current tag and attribute * name to stdout. */ if (c == '$') { printf("[[ "); if (htmlparser_tag(parser)) printf(...