MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / WizHtmlGetContent

Function WizHtmlGetContent

src/html/WizHtmlTool.cpp:89–96  ·  view source on GitHub ↗

* @brief Get pure text content from html string. * * TODO: add more test cases. * * @param htmlText HTML string. * @return QString */

Source from the content-addressed store, hash-verified

87 * @return QString
88 */
89QString WizHtmlGetContent(const QString &htmlText)
90{
91 GumboOutput *output = Utils::Gumbo::parseFromString(htmlText);
92 const QString content = Utils::Gumbo::innerText(output->root);
93 Utils::Gumbo::destroyGumboOutput(output);
94
95 return content;
96}
97
98
99/**

Callers 1

Calls 3

parseFromStringFunction · 0.85
innerTextFunction · 0.85
destroyGumboOutputFunction · 0.85

Tested by 1