# Twittertex
Twittertex format a Map containing the JSON structure of a Tweet, and render it to HTML for display.
It uses the tweet’s entities to link to the appropriate URLs for mentions, hashtags, links and media.
## Example
```elixir
Twittertex.format_tweet(tweet_json)
# "Along with our new <a href=\"https://twitter.com/hashtag/Twitterbird\">#Twitterbird</a>, we've also updated our Display Guidelines: <a href=\"https://dev.twitter.com/terms/display-guidelines\">dev.twitter.com/terms/display-…</a> ^JC"
```
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
1. Add twittertex to your list of dependencies in `mix.exs`:
def deps do
[{:twittertex, "~> 0.1.0"}]
end
2. Ensure twittertex is started before your application:
def application do
[applications: [:twittertex]]
end