mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
FeedReader:
- Added error handling to xml functions - Added xslt transformation - Added retransform of existing messages - Redesigned preview dialog - Enabled embed images for forum feeds - Changed config format, switching back to an older version results in a loss of all data of the FeedReader Added new base class RSPlainTextEdit with placeholder text. New library libxslt needed git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6081 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
919fb3f62d
commit
ef49000b9a
28 changed files with 1549 additions and 849 deletions
|
@ -32,7 +32,10 @@ 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 | HTML_PARSE_NONET | HTML_PARSE_NOBLANKS);
|
||||
handleError(true, mLastErrorString);
|
||||
mDocument = htmlReadMemory(html, strlen(html), url, "", /*HTML_PARSE_NOERROR | HTML_PARSE_NOWARNING | */HTML_PARSE_COMPACT | HTML_PARSE_NONET | HTML_PARSE_NOBLANKS);
|
||||
handleError(false, mLastErrorString);
|
||||
|
||||
if (mDocument) {
|
||||
return true;
|
||||
}
|
||||
|
@ -48,7 +51,10 @@ bool HTMLWrapper::saveHTML(std::string &html)
|
|||
|
||||
xmlChar *newHtml = NULL;
|
||||
int newHtmlSize = 0;
|
||||
handleError(true, mLastErrorString);
|
||||
htmlDocDumpMemoryFormat(mDocument, &newHtml, &newHtmlSize, 0);
|
||||
handleError(false, mLastErrorString);
|
||||
|
||||
if (newHtml) {
|
||||
convertToString(newHtml, html);
|
||||
xmlFree(newHtml);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue