return NULL;
}
- return Tweeper::jsonToXml($matches[1], 'instagram');
+ // Filter elements which will result in invalid XML element names.
+ $json = str_replace('404_as_react', '_404_as_react', $matches[1]);
+
+ return Tweeper::jsonToXml($json, 'instagram');
}
/**