开发者

Tweet Hash Tags

Can someone explain to me ho开发者_Python百科w Hash tags get anchors after being posted. I want to work on a similar implementation in php. The logic behind that operation and links will be useful. thanks


$html = preg_replace("/#([a-z0-9_]+)/", '<a href="hashtag/${1}">#${1}</a>', htmlspecialchars($tweet_contents));


something like http://www.snipe.net/2009/09/php-twitter-clickable-links/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜