title: Add image width and height in string
body: <p>I have a string like this:</p>
  
  <pre><code>&lt;p&gt;This is a paragraph with an image &lt;img src='/url-to-img.jpg' style='height:100px;width:30px;float:right;'&gt;&lt;/p&gt;
  &lt;p&gt;This is another paragraph with an image &lt;img src='/url-to-img.jpg' style='margin:10px;height:100px;width:30px;float:left;'&gt;&lt;/p&gt;
  </code></pre>
  
  <p>This string is from the database and the editor adds the image like that, unfortunately. </p>
  
  <p>Now I want to edit this automatically using PHP to this:</p>
  
  <pre><code>&lt;p&gt;This is a paragraph with an image &lt;img src='/url-to-img.jpg' style='height:100px;width:30px;float:right;' height=100 width=30 align='right'&gt;&lt;/p&gt;
  &lt;p&gt;This is another paragraph with an image &lt;img src='/url-to-img.jpg' style='margin:10px;height:100px;width:30px;float:left;' height=100 width=30 align='left'&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I would like to get the height and width from the style and add them to the img tag. </p>
  
  <p>Is this possible? </p>
  
  <p>(This is so my image will show the alt text and not like a small square in Outlook. I want it to show as the full image)</p>