[Plugin: Elegant Twitter Widget] Dealing with quotes and utf-8 stuff
-
Since the text node coming from twitter’s api isn’t in CDATA, but should be, I’ve just done a quick hack to force it.
After line 122 in the elegant-twitter-widget.php add:
$response = str_replace('<text>', '<text><![CDATA[', $response); $response = str_replace('</text>', ']]></text>', $response);
You’ll end up with:
$response = file_get_contents($url); $response = str_replace('<text>', '<text><![CDATA[', $response); $response = str_replace('</text>', ']]></text>', $response);
Hope this helps.
https://www.ads-software.com/extend/plugins/elegant-twitter-widget/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Elegant Twitter Widget] Dealing with quotes and utf-8 stuff’ is closed to new replies.