I want to hide URLs returned from Twitter API

I have a setup where a user inserts a tweet URL in an input element and they click a button to show the tweet.
The problem is, after calling the twitter API, when I display the tweet in a group with a text element inside, if the tweet has images, I always get a URL.
How do I hide these URLs?