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.
Written by John Polling
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Gem
Authors
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
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#