title: How to convert HTML to valid XHTML?
body: <p>I have a string of HTML, in this example it looks like</p>
  
  <pre><code>&lt;img src="somepic.jpg" someAtrib="1" &gt;
  </code></pre>
  
  <p>I am trying to workout a peice of regex that will match the 'img' node and apply a slash to the end of the node so it looks like.</p>
  
  <pre><code>&lt;img src="somepic.jpg" someAtrib="1" /&gt;
  </code></pre>
  
  <p>Essentially the end goal here is to ensure that the node is closed, open nodes are valid in HTML but not XML obviously. Are there any regex buff's out there able to help?</p>