开发者

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

开发者 https://www.devze.com 2023-01-14 06:51 出处:网络
How can I pars开发者_高级运维e HTML tags using c++? eg: <html><body>examlpe text </body></html>

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

精彩评论

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

关注公众号