mannynotfound / react-tweet

React.js component for rendering tweets as they are presented on Twitter.com
67 stars 43 forks source link

twitter-text as support for URL entities, and long url replacement #2

Closed Guibod closed 8 years ago

Guibod commented 8 years ago

In Text rather than:

    text = twitterText.autoLink(text, {'usernameIncludeSymbol': true});

I suggest:

    text = twitterText.autoLinkWithJSON(text, entities, {'usernameIncludeSymbol': true});
mannynotfound commented 8 years ago

@Guibod agreed. added in v 1.0.14