From f3774b9d65cdd189d9caeac8066b8a3e27c5d549 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 9 Sep 2017 13:51:59 -0500 Subject: 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. --- plugins/af_comics/filters/af_comics_dilbert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/af_comics/filters/af_comics_dilbert.php') diff --git a/plugins/af_comics/filters/af_comics_dilbert.php b/plugins/af_comics/filters/af_comics_dilbert.php index 565b44657..a40f8a9ba 100644 --- a/plugins/af_comics/filters/af_comics_dilbert.php +++ b/plugins/af_comics/filters/af_comics_dilbert.php @@ -49,7 +49,7 @@ class Af_Comics_Dilbert extends Af_ComicFilter { } if ($basenode) { - $article["content"] = $doc->saveXML($basenode); + $article["content"] = $doc->saveHTML($basenode); } // Add comic title to article type if not empty (mostly Sunday strips) -- cgit v1.2.3