title: How to remove div content with id from string in c#?
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>var result='&lt;div class="a1"&gt;Heading 1&lt;/div&gt;&lt;div class="a2"&gt;Heading 2&lt;/div&gt;&lt;div class="a3"&gt;Heading 3&lt;/div&gt;'</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to remove the div and inner content with class'a2' and output should be the below</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>var result='&lt;div class="a1"&gt;Heading 1&lt;/div&gt;&lt;div class="a3"&gt;Heading 3&lt;/div&gt;'</code></pre>
  </div>
  </div>
  </p>