MCPcopy Create free account
hub / github.com/RetroShare/RetroShare / readHTML

Method readHTML

plugins/FeedReader/util/HTMLWrapper.cpp:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool 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
45bool HTMLWrapper::saveHTML(std::string &html)
46{

Callers 4

processMsgMethod · 0.80
processXPathMethod · 0.80
processXsltMethod · 0.80
fillStructureTreeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected