# Twitter Emoji (Twemoji) [![Build Status](https://secure.travis-ci.org/twitter/tweomji.png?branch=gh-pages)](http://travis-ci.org/twitter/twemoji) A simple library that provides standard Unicode [emoji](http://en.wikipedia.org/wiki/Emoji) support across all platforms. ## CDN Support The folks over at [MaxCDN](https://www.maxcdn.com) graciously provide CDN support. Just use the following in the `
` tag of your HTML document(s): ```html ``` ## API Following all methods exposed through the `twemoji` namespace. ### twemoji.parse( ... ) This is the main parsing utility and it has 3 overloads per each parsing type. There are mainly two kind of parsing, [string parsing](https://github.com/twitter/twemoji#string-parsing), and [DOM parsing](https://github.com/twitter/twemoji#dom-parsing). Each of them accept a callback to generate each image source, or an options object with parsing info. Here a walk through all parsing possibilities. ##### string parsing Given a generic string, it will replace all emoji with an `` tag. While this can be used to inject via `innerHTML` emoji image tags, please note that this method does not sanitize the string or prevent malicious code to be executed. As example, if the text contains a `