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

Method saveHTML

plugins/FeedReader/util/HTMLWrapper.cpp:45–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool HTMLWrapper::saveHTML(std::string &html)
46{
47 if (!mDocument) {
48 return false;
49 }
50
51 xmlChar *newHtml = NULL;
52 int newHtmlSize = 0;
53 handleError(true, mLastErrorString);
54 htmlDocDumpMemoryFormat(mDocument, &newHtml, &newHtmlSize, 0);
55 handleError(false, mLastErrorString);
56
57 if (newHtml) {
58 convertToString(newHtml, html);
59 xmlFree(newHtml);
60
61 return true;
62 }
63
64 return false;
65}
66
67bool HTMLWrapper::createHTML()
68{

Callers 3

processMsgMethod · 0.80
processXPathMethod · 0.80
processXsltMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected