Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 405 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 405 Bytes

TwitterMarkup

A simple JavaScript static object that will marking up a string of Twitter tweets. It marks up urls, usernames and hashtags or all of them in one.

Where the HTML is:

<ul id="myTweets">
    <li>TWEET 1</li>
    <li>TWEET 2</li>
    <li>TWEET 3</li>
</ul>

Example:

TwitterMarkup.transform(document.getElementById('myTweets'));