title: How to display spaces in between text in asp.net c# html
body: <p>I have a weird problem, I am getting data straight from the database into a data source. The data is binded in a repeater with link buttons.  </p>
  
  <p>The problem I am having is that the data in the database might have multiple spaces in the middle of the string however when being displayed on the front end only space is being shown. After thinking about it this is standard HTML behavior to remove spaces, I would have assumed that asp.net would have handled this with the rendering of the webpage. What is also happening is that when reports are exported to excel it only has 1 space instead of two.</p>
  
  <p>Example: </p>
  
  <p>2 spaces: "South Africa &nbsp;&nbsp;- &nbsp;&nbsp;Cape Town" <br>
  single spaces: "South Africa - Cape Town"</p>
  
  <p>This is an irrelevant example but my data has real use for multiple spaces.</p>