Skip to content

Instantly share code, notes, and snippets.

View LenaicTerrier's full-sized avatar

Lénaïc LenaicTerrier

  • Annecy
  • 08:30 (UTC +01:00)
View GitHub Profile
@LenaicTerrier
LenaicTerrier / twitter-entities.js
Last active September 26, 2021 01:53 — forked from wadey/twitter-entities.js
Added support for emojis and html specials characters.
/*
* twitter-entities.js
* This function converts a tweet with "entity" metadata
* from plain text to linkified HTML.
*
* See the documentation here: http://dev.twitter.com/pages/tweet_entities
* Basically, add ?include_entities=true to your timeline call
*
* Based off existing code from Wade Simmons
* Licensed under the MIT license