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.
精彩评论