Merge pull request #144 from lotrfan/import_export_fix

[import_export plugin] Escape ']]>' (closing CDATA tag) when exporting feeds
This commit is contained in:
Andrew Dolgov 2013-04-09 21:14:57 -07:00
commit 6201154848
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ class Import_Export extends Plugin implements IHandler {
fputs($fp, "<article>"); fputs($fp, "<article>");
foreach ($line as $k => $v) { foreach ($line as $k => $v) {
$v = str_replace("]]>", "]]]]><![CDATA[>", $v);
fputs($fp, "<$k><![CDATA[$v]]></$k>"); fputs($fp, "<$k><![CDATA[$v]]></$k>");
} }