Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($tweet->entities && $tweet->entities->urls){
- foreach($tweet->entities->urls as $url){
- $text = str_replace($url->url, '<a href="'.$url->url.'" target="_blank" title="'.$url->url.'">'.$url->url.'</a>',$text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement