Add Links to Twitter Mentions, Hashtags, and URLs with PHP and the Twitter 1.1 oAuth API

Add link elements around tweet entities such as hash tags, mentions, and urls

If you’re using the Twitter v1.1 API to fetch a user’s statuses from their timeline, then you’ve likely come across the fact that user mentions, hashtags, and urls do not have links in the “text” node of the JSON response the API returns. There is no <a> element to follow the link, and there are no links to follow to check out a mention or hashtag on Twitter site. more…