diff options
author | wn_ <[email protected]> | 2017-09-09 13:51:59 -0500 |
---|---|---|
committer | wn_ <[email protected]> | 2017-09-09 13:51:59 -0500 |
commit | f3774b9d65cdd189d9caeac8066b8a3e27c5d549 (patch) | |
tree | b02ef9ef2e2cde2787e0df5192a21df011df89d0 /plugins/af_comics/filters/af_comics_cad.php | |
parent | 153cb6d30510f9804fe596ac6777bc2f35111ae2 (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/filters/af_comics_cad.php')
-rw-r--r-- | plugins/af_comics/filters/af_comics_cad.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/af_comics/filters/af_comics_cad.php b/plugins/af_comics/filters/af_comics_cad.php index 6846f3cb0..d2eb38caf 100644 --- a/plugins/af_comics/filters/af_comics_cad.php +++ b/plugins/af_comics/filters/af_comics_cad.php @@ -25,7 +25,7 @@ class Af_Comics_Cad extends Af_ComicFilter { $basenode = $xpath->query('//div[@class="comicpage"]/a/img')->item(0); if ($basenode) { - $article["content"] = $doc->saveXML($basenode); + $article["content"] = $doc->saveHTML($basenode); } } @@ -36,4 +36,4 @@ class Af_Comics_Cad extends Af_ComicFilter { return false; } -}
\ No newline at end of file +} |