* @brief Get pure text content from html string. * * TODO: add more test cases. * * @param htmlText HTML string. * @return QString */
| 87 | * @return QString |
| 88 | */ |
| 89 | QString 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 | /** |