javascript - Create links to tweet text from entities (hashtags, links, mentions...) of Twitter REST API - Stack Overflow

I'm inserting tweets in one website, but i'm with a little problem to get the entities (hasht

I'm inserting tweets in one website, but i'm with a little problem to get the entities (hashtags, mentions, links...)

REST Api give us information about the entities, like we can see here

But, the api give me the indices of this entities in the string text (tweet), but, if i insert a link in this tweet, the other link will change, and make verifications from all cases will spend much time.

Someone know some way to do that, a easy one, or some plugin in jQuery or API that make this for us?

(P.S.: Sorry some error, i'm a brazilian developer and my english was not so good :D )

I'm inserting tweets in one website, but i'm with a little problem to get the entities (hashtags, mentions, links...)

REST Api give us information about the entities, like we can see here https://dev.twitter./docs/tweet-entities

But, the api give me the indices of this entities in the string text (tweet), but, if i insert a link in this tweet, the other link will change, and make verifications from all cases will spend much time.

Someone know some way to do that, a easy one, or some plugin in jQuery or API that make this for us?

(P.S.: Sorry some error, i'm a brazilian developer and my english was not so good :D )

Share Improve this question asked May 3, 2012 at 16:52 evandrobmevandrobm 4451 gold badge7 silver badges17 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 6

Quick google yielded the following gist:

https://gist.github./442463

Also have a look at this one: https://github./twitter/twitter-text-js

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744306412a4567734.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信