mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:05:56 +00:00
Escape ']]>' (closing CDATA tag) when exporting with import_export plugin
This commit is contained in:
@@ -162,6 +162,7 @@ class Import_Export extends Plugin implements IHandler {
|
||||
fputs($fp, "<article>");
|
||||
|
||||
foreach ($line as $k => $v) {
|
||||
$v = str_replace("]]>", "]]]]><![CDATA[>", $v);
|
||||
fputs($fp, "<$k><![CDATA[$v]]></$k>");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user