title: Replace continuous space with single space and multiple "&nbsp" elements
body: <p>I have one html document which contains whitespaces in some nodes. For example,</p>
  
  <pre><code>&lt;B&gt;This is          Whitespace      Node &lt;/B&gt;
  </code></pre>
  
  <p>When this html is displayed in the browser, more than one continuous space in html is always displayed as one space. To avoid this issue, I want to replace the continuous spaces with a single space and multiple <code>&amp;nbsp;</code> elements.</p>
  
  <p>What is the best solution to achive this?</p>
  
  <p>I am using C# 2005.</p>