function _disqus_migrate_cleanse_xml in Disqus 6
Helper function cleanse a string for placement in an XML file
1 call to _disqus_migrate_cleanse_xml()
- _disqus_migrate_export_wxr in include/
disqus_migrate.export.inc - Calls function to gather comments to export, then builds the appropriate XML file and presents it to the user for download.
File
- include/
disqus_migrate.export.inc, line 415
Code
function _disqus_migrate_cleanse_xml($string) {
$find = array(
'>',
'<',
'&',
'"',
"'",
);
$replace = array(
'>',
'<',
'&',
'"',
''',
);
return str_replace($find, $replace, $string);
}