Where can I obtain the logic being used by Twitter website to properly process tweet text URLs/hashtags/usernames/lists into links?
I tried using some PHP library (from github) but for example they included a trailing ‘!’ as part of a link, whereas Twitter correctly counts it out of the URL link.
I’m sure Twitter would (should?) share the whole extremely useful bit of info/logic, where might it be found?
Thanks