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 /classes | |
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 'classes')
-rw-r--r-- | classes/feeditem/atom.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/feeditem/atom.php b/classes/feeditem/atom.php index 76d85b2a2..77cd448b8 100644 --- a/classes/feeditem/atom.php +++ b/classes/feeditem/atom.php @@ -69,7 +69,7 @@ class FeedItem_Atom extends FeedItem_Common { $child = $content->childNodes->item($i); if ($child->hasChildNodes()) { - return $this->doc->saveXML($child); + return $this->doc->saveHTML($child); } } } @@ -89,7 +89,7 @@ class FeedItem_Atom extends FeedItem_Common { $child = $content->childNodes->item($i); if ($child->hasChildNodes()) { - return $this->doc->saveXML($child); + return $this->doc->saveHTML($child); } } } @@ -197,4 +197,4 @@ class FeedItem_Atom extends FeedItem_Common { return $encs; } -}
\ No newline at end of file +} |