Escape ']]>' (closing CDATA tag) when exporting with import_export plugin
This commit is contained in:
parent
3a8d756ce1
commit
c541d3a57e
1 changed files with 1 additions and 0 deletions
|
@ -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>");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue