Find text when <br> is not in front of <img>
<p>I need to find out the content before <code>&lt;img&gt;</code> tag in my HTML if it does not have <code>&lt;br/&gt;</code> before it. And if <code>&lt;img&gt;</code> jas some other content before it then I need to add <code>&lt;br/&gt;</code> before it.</p>
