mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 22:31:27 +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:
@@ -199,7 +199,7 @@ class Af_Zz_ImgProxy extends Plugin {
|
||||
}
|
||||
}
|
||||
|
||||
if ($need_saving) $article["content"] = $doc->saveXML();
|
||||
if ($need_saving) $article["content"] = $doc->saveHTML();
|
||||
|
||||
return $article;
|
||||
}
|
||||
@@ -257,4 +257,4 @@ class Af_Zz_ImgProxy extends Plugin {
|
||||
function api_version() {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user