I\'m really stumped on how Twitter expects users of its API to convert the plaintext tweets it sends to properly linked HTML.
Here\'s the deal: Twitter\'s JSON API sends
Regarding vita10gy's helpful json_tweet_text_to_HTML()
, I found a tweet that it could not format correctly: 626125868247552000.
This tweet has a nonbreaking space in it. My solution was to replace the first line of the function with the following:
$return = str_replace("\xC2\xA0", ' ', $tweet->text);
Performing a str_replace()
on
is covered here.