If I have a string like so:
Hi this is a photo of me <img src='myself.jpg' alt='pic of me' />. Another pic of me <img src='abc.jpg'/>
How can I turn that into:
Hi this is a photo of me (myself). Another pic of me (image)
Basically I want to remove all images from a string and replace them with their alt tag if it had one. If it doesn't it should say just 'image'.