I am trying to get tweets from Twitter with text body, like in Twitter widget, using search API v1.1. What is the problem. This is my code:
$connection = new TwitterOAuth($consumer_key, $consumer_secret, $twitter_access_token['oauth_token'], $twitter_access_token['oauth_token_secret']);
$tweets = $connection->get('search/tweets', ['count' => 30, 'result_type' => 'mixed', 'q' => $hashtags]);
return $tweets;
Each tweet has property "text", which contains something like this: tweet object
Here also can be images, quotes, etc. All of this is just text. Whithout html tags. But if I use widget, it returns something like this: tweet structure in widget
As you can see, quotes, hashtags, images and other stuff are wrapped in html tags and are displayed not like just text.
How can I get tweets with such text (with html tags), using search API v1.1? Thanks for any help.