| 28 | } |
| 29 | |
| 30 | bool HTMLWrapper::readHTML(const char *html, const char *url) |
| 31 | { |
| 32 | cleanup(); |
| 33 | |
| 34 | handleError(true, mLastErrorString); |
| 35 | mDocument = htmlReadMemory(html, strlen(html), url, "", /*HTML_PARSE_NOERROR | HTML_PARSE_NOWARNING | */HTML_PARSE_COMPACT | HTML_PARSE_NONET | HTML_PARSE_NOBLANKS); |
| 36 | handleError(false, mLastErrorString); |
| 37 | |
| 38 | if (mDocument) { |
| 39 | return true; |
| 40 | } |
| 41 | |
| 42 | return false; |
| 43 | } |
| 44 | |
| 45 | bool HTMLWrapper::saveHTML(std::string &html) |
| 46 | { |
no outgoing calls
no test coverage detected