I have some scrapped content like
<figure><a href="/fzesny/sample.html">
<img alt="playerpr120x76" src="/assets/small.jpg"><span class="number">1</span>
<figcaption>Some Name</figcaption></a>
I need to change the href value to "#" and append scrapped contents URL in the image src.
<a href="">
and image tag must have the server URL appended
<img src="www.example.com/assets/small.jpg"
For image i used
$find = "/assets";
$replace = 'http://www.example.com/assets';
echo str_replace($find,$replace,$full_content,$i)
How can i remove the href link ?