Last Updated: February 25, 2016
·
1.498K
· 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

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside