mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -04:00
FeedReader plugin
- reserved service id - reworked error codes - added xpath manipulation and basic gui elements in preview dialog git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5514 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
08904bf82f
commit
c7ed9c6df7
23 changed files with 1595 additions and 430 deletions
|
@ -32,7 +32,7 @@ bool HTMLWrapper::readHTML(const char *html, const char *url)
|
|||
{
|
||||
cleanup();
|
||||
|
||||
mDocument = htmlReadMemory(html, strlen(html), url, "", HTML_PARSE_NOERROR | HTML_PARSE_NOWARNING/* | HTML_PARSE_COMPACT*/);
|
||||
mDocument = htmlReadMemory(html, strlen(html), url, "", HTML_PARSE_NOERROR | HTML_PARSE_NOWARNING | HTML_PARSE_COMPACT | HTML_PARSE_NONET | HTML_PARSE_NOBLANKS);
|
||||
if (mDocument) {
|
||||
return true;
|
||||
}
|
||||
|
@ -58,3 +58,18 @@ bool HTMLWrapper::saveHTML(std::string &html)
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool HTMLWrapper::createHTML()
|
||||
{
|
||||
/* easy way */
|
||||
return readHTML("<html><body></body></html>", "");
|
||||
}
|
||||
|
||||
xmlNodePtr HTMLWrapper::getBody()
|
||||
{
|
||||
xmlNodePtr root = getRootElement();
|
||||
if (!root) {
|
||||
return NULL;
|
||||
}
|
||||
return findNode(root->children, "body", false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue