title: C# - Remove spaces in HTML source in between markups?
body: <p>I am currently working on a program that allows me to enter HTML source code into a RichTextBox control and removes the spaces from in between markups.  The only problem is, I am not sure how I can differentiate between the spaces BETWEEN the markups and the spaces INSIDE the markups.  Obviously, removing the spaces inside the markups would be bad.  Any ideas as to how I can tell the difference? </p>
  
  <p>Example: (before white space is removed)</p>
  
  <pre><code>&lt;p&gt;blahblahblah&lt;/p&gt;                  &lt;p&gt;blahblahblah&lt;/p&gt;
  </code></pre>
  
  <p>Example: (after white space is removed)</p>
  
  <pre><code>&lt;p&gt;blahblahblah&lt;/p&gt;&lt;p&gt;blahblahblah&lt;/p&gt;
  </code></pre>