title: How to convert a space into non breaking space entity in c#
body: <p>I want to convert  more that <code>spaces</code> in a string to <code>&amp;nbsp;</code> through c#? </p>
  
  <p>Like if string is </p>
  
  <pre><code>       My name  is this.
  </code></pre>
  
  <p>then output should be</p>
  
  <pre><code>   My name &amp;nbsp;is this.
  </code></pre>