title: Remove div tags in HTML in C#
body: <p>My aim is to store the binary format of HTML code in an iframe. I want to convert the tab into HTML. In JavaScript I converted the div content into HTML and through a hidden field I am getting the HTML content.</p>
  
  <p>In that page I have an ajax HTML editor so I am getting big empty space. I am trying to remove it using regex like:</p>
  
  <pre><code>Regex.Replace(htmlformat,"divID",'')
  </code></pre>
  
  <p>But it's removing only the id like <code>div id=""style...</code> So it removes the space but it's not in the HTML format. So iframe webservice is not able to convert it into pdf.</p>
  
  <p>I want to remove the div content with its tags in HTML using C#.</p>