title: Remove empty tags using RegEx
body: <p>I want to delete empty tags such as <code>&lt;label&gt;&lt;/label&gt;</code>, <code>&lt;font&gt; &lt;/font&gt;</code> so that:</p>
  
  <pre><code>&lt;label&gt;&lt;/label&gt;&lt;form&gt;&lt;/form&gt;
  &lt;p&gt;This is &lt;span style="color: red;"&gt;red&lt;/span&gt; 
  &lt;i&gt;italic&lt;/i&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>will be cleaned as:</p>
  
  <pre><code>&lt;p&gt;This is &lt;span style="color: red;"&gt;red&lt;/span&gt; 
  &lt;i&gt;italic&lt;/i&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I have this RegEx in javascript, but it deletes the the empty tags but it also delete this: <code>"&lt;i&gt;italic&lt;/i&gt;&lt;/p&gt;"</code></p>
  
  <pre><code>str=str.replace(/&lt;[\S]+&gt;&lt;\/[\S]+&gt;/gim, "");
  </code></pre>
  
  <p>What I am missing?</p>