projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rss_converter_twitter.com.xsl: add support for permalink URLs
[tweeper.git]
/
src
/
Tweeper.php
diff --git
a/src/Tweeper.php
b/src/Tweeper.php
index
8ac2fe3
..
d60e43b
100644
(file)
--- a/
src/Tweeper.php
+++ b/
src/Tweeper.php
@@
-249,7
+249,10
@@
class Tweeper {
return NULL;
}
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');
}
/**
}
/**