summaryrefslogtreecommitdiff
path: root/plugins/af_comics/init.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2017-09-09 13:51:59 -0500
committerwn_ <[email protected]>2017-09-09 13:51:59 -0500
commitf3774b9d65cdd189d9caeac8066b8a3e27c5d549 (patch)
treeb02ef9ef2e2cde2787e0df5192a21df011df89d0 /plugins/af_comics/init.php
parent153cb6d30510f9804fe596ac6777bc2f35111ae2 (diff)
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.
Diffstat (limited to 'plugins/af_comics/init.php')
-rw-r--r--plugins/af_comics/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php
index 09e903379..6bd3c23e2 100644
--- a/plugins/af_comics/init.php
+++ b/plugins/af_comics/init.php
@@ -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;
}
-} \ No newline at end of file
+}