mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:35:56 +00:00
Use 'saveHTML' when generating HTML from a DOMDocument.
This primarily occurs when modifying article content. If 'saveXML' is used following 'loadHTML' there is the possibility of strangeness, such as a self-closing anchor tag. Note that the DOMDocument used in 'classes/feeditem/atom.php' came from 'loadXML', but we use 'saveHTML' since we're returning HTML content.
This commit is contained in:
@@ -127,7 +127,7 @@ class Af_Comics extends Plugin {
|
||||
$tpl->setVariable('ARTICLE_LINK', $article_link, true);
|
||||
$tpl->setVariable('ARTICLE_TITLE', date('l, F d, Y'), true);
|
||||
$tpl->setVariable('ARTICLE_EXCERPT', '', true);
|
||||
$tpl->setVariable('ARTICLE_CONTENT', $doc->saveXML($node), true);
|
||||
$tpl->setVariable('ARTICLE_CONTENT', $doc->saveHTML($node), true);
|
||||
|
||||
$tpl->setVariable('ARTICLE_AUTHOR', '', true);
|
||||
$tpl->setVariable('ARTICLE_SOURCE_LINK', $site_url, true);
|
||||
@@ -153,4 +153,4 @@ class Af_Comics extends Plugin {
|
||||
return 2;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user