JSFiddle - React, Tailwind, and code Playground
HTML
<button>Remove pics</button>
<div id="table" class="content">
<a href="http://onebigphoto.com/as-the-sun-sets-over-prague/">
<div class="portfolioitem">
<div class="portfolioimg"><img src="http://onebigphoto.com/uploads/2012/07/as-the-sun-sets-over-prague-thumb.jpg" alt="as the sun sets over prague" /></div>
<div class="portfoliotext"><h1><a href="http://onebigphoto.com/as-the-sun-sets-over-prague/">as the sun sets over prague</a></h1></div>
<ul class="portfoliocategories"><ul class="post-categories">
<li><a href="http://onebigphoto.com/category/urban-photography/" title="View all posts in urban photography" rel="category tag">urban photography</a></li></ul></ul>
</div>
</a>
<a href="http://onebigphoto.com/space-station-above-aurora-borealis/">
<div class="portfolioitem">
<div class="portfolioimg"><img src="http://onebigphoto.com/uploads/2012/07/space-station-above-aurora-borealis-thumb.jpg" alt="space station above aurora borealis" /></div>
<div class="portfoliotext"><h1><a href="http://onebigphoto.com/space-station-above-aurora-borealis/">space station above aurora borealis</a></h1></div>
<ul class="portfoliocategories"><ul class="post-categories">
<li><a href="http://onebigphoto.com/category/space-photography/" title="View all posts in space photography" rel="category tag">space photography</a></li></ul></ul>
</div>
</a>
</div>
CSS
img{
width:100px;
height:100px;
}
JavaScript
document.getElementsByTagName("button")[0].onclick = function(){
var table = document.getElementById("table");
table.innerHTML = table.innerHTML.replace(/<\s*img[^>]*>/gi,'');
}