Quantcast
Channel: How to display image from an RSS Feed description using PHP Laravel - Stack Overflow
Viewing all articles
Browse latest Browse all 2

How to display image from an RSS Feed description using PHP Laravel

$
0
0

Im working in PHP Laravel to build an RSS FEED READER

I have read the XML file and it displays the title, description and link.But the description contains image which i don't know how to display as an image.Now the image part comes in html format as shown below:

enter image description here

Instead i want it to be displayed like this:

enter image description here

Here is my html code where the rss feed content display happens:

 @foreach ($feed->item as $item)<tbody><div class="card"><div class="card-header"><a href="{{ $item->link }}">{{ $item->title}}</a></div><div class="card-header"><a href="{{ $item->link }}">{{ $item->thumbnail}}</a></div><div class="card-body">              {{$item->description}}</div></div></tbody>        @endforeach

Can somebody please help me with this.Thanks in advance.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images