So I occured one problem. I got a code –
<img class="image-caption" title="title" src="picture link goes here" alt="" width="520" height="328" />caption ghoes here
So basically what I need to do is go through $content, get each caption ghoes here<img> src that is inside tags, for more info, see the code above, and insert the src link inside caption and remove the img tag, so in the end it would look like .
AS you can see, the src is changed to url too. Hope you can help me with this.
This should work: