开发者

How can I extract text from HTML using c++?

How can I pars开发者_高级运维e HTML tags using c++?

eg:

<html><body>examlpe text </body></html>


The easiest option would be to use an HTML parsing library. libxml2 is a solid open-source one, although it's technically a C library. You'd need to load your html and then walk through the DOM pulling out all the text() nodes. I don't know that I'd recommend this as your first C++ task.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜