title: Remove all div elements from string using vb.net
body: <p>I want to remove all  elements, including the ones with attributes like <code>class</code>, from my string.
  I already checked here, so regex is apparently not the answer: <a href="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags">RegEx match open tags except XHTML self-contained tags</a></p>
  <p>I currently already have something with regex that replaces all tags from a string (note, I'm never parsing a full HTML document if that matters) and preserves the content: <code>Regex.Replace(s, &quot;&lt;[^&gt;]*(&gt;|$)&quot;, String.Empty)</code>. However, I just want the <code>div</code> tags removed and preserve the content.</p>
  <p>So I have:</p>
  <pre><code>&lt;div class=&quot;&quot;fade-content&quot;&quot;&gt;&lt;div&gt;&lt;span&gt;some  content&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
  &lt;div&gt;some  content&lt;/div&gt; 
  </code></pre>
  <p>Desired output:</p>
  <pre><code>&lt;span&gt;some  content&lt;/span&gt;
  some  content
  </code></pre>
  <p>I was going the regex path stil, and trying something like: <code>&lt;div&gt;.*&lt;\/div&gt;</code>, but that excludes divs with attributes.</p>
  <p>How can I remove <code>div</code> elements only, using VB.NET?</p>