Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Some comments have CDATA in them. The one I saw seemed to be pasted from microsoft word. This results in an XML file that will not be imported but have an error. A simple solution is remove the closing CDATA tag in the filter function like so:
function disqus_migrate_filter($text) {
$text = str_replace("\r", '', $text);
return str_replace("]]>", '', filter_dom_serialize(filter_dom_load($text)));
}
There may be a better solution.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2275143_disqus_migrate_commets-cdata.patch | 522 bytes | juampynr |
Comments
Comment #1
juampynr CreditAttribution: juampynr commentedThe suggested fix works. I adjusted it slightly. Here is a patch.
Comment #2
juampynr CreditAttribution: juampynr at Lullabot commentedCommitted. Thanks!