Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/141.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ html2text库_C++_Html_Linux - Fatal编程技术网

C++ html2text库

C++ html2text库,c++,html,linux,C++,Html,Linux,linux中有实用工具html2text。如何在C++代码中使用它的或类似的库? 例如,将从任何站点检索到的html转换为可读文本。html2text的代码是开放的,可以免费获得。当然,我会检查它的许可证,看看你是否被允许在你的应用程序中使用它。源代码是。您可以在代码中使用html2text实用程序吗?比如: string output; output = system('html2text (...)'); 也许它会解决你的问题。绝对不要再发明轮子了!如果html2text的许可证上说你可以

linux中有实用工具html2text。如何在C++代码中使用它的或类似的库?
例如,将从任何站点检索到的html转换为可读文本。

html2text的代码是开放的,可以免费获得。当然,我会检查它的许可证,看看你是否被允许在你的应用程序中使用它。源代码是。

您可以在代码中使用html2text实用程序吗?比如:

string output;
output = system('html2text (...)');

也许它会解决你的问题。

绝对不要再发明轮子了!如果html2text的许可证上说你可以使用它的代码,那就去做吧

也许吧。但我认为这不是一个很好的方法。如果没有其他解决方案,我将使用它。您不需要复制/粘贴代码;相反,您可以单独编译它并将其链接到应用程序中。