Just an update to the LibDem Blog code.
I’ve added this line of code
$text = preg_replace(‘/<img.*?alt=(“|\’)(.*?)\1.*?>/i’, ‘ {$2} ‘, $text);
Which replaces <img xsrc=”https://blog.artesea.co.uk/images/ming.png/” mce_src=”https://blog.artesea.co.uk/images/ming.png/” alt=”Ming T-Shirt” /> with {Ming T-Shirt}