Colleagues.
I'm not very knowledgeable about regular expressions, however, I need to know that after the < img > break a line. For example:
$ string="< img src = 'images / image.jpg' > here will be the line break";
It would look like this:
(the image)
here there will be the line break