Last Updated: February 25, 2016
·
1.258K
· pollingj

Twitter Text autolinking and extraction for URLs, usernames, lists, and hashtags

Just integrating twitter into a client website. In the past I've just done some custom stuff and mixed in the standard auto_link helper. Discovered today this handy gem, and yes I know I'm probably late to the party.

https://github.com/twitter/twitter-text-rb/

Even better it appears that Twitter have the library for several different languages.

e.g. https://github.com/twitter/twitter-text-js