html2text library
There is utility html2text in linux. How can i use its or similar library in my c++开发者_StackOverflow中文版 code? For example to convert html which was retrieved from any site to a readable text.
The code for html2text is open and available for free. Of course, I'd check its license to see if you're allowed to use it in your application. The source code is here.
Can you just use html2text utility in your code? Like:
string output;
output = system('html2text (...)');
Maybe it'll resolve your problem.
Definitely don't re-invent the wheel! If html2text's license says you can use its code, do it!
精彩评论