title: remove line breaks and white spaces
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/238002/replace-line-breaks-in-a-string-c-sharp">Replace Line Breaks in a String C#</a>  </p>
  </blockquote>
  
  
  
  <p>hi I have an <code>textarea</code> which anyone can enter text, where they can put line breaks inside the text area.</p>
  
  <p>How can I remove the line breaks created by pressing the enter key? can either be in c# or javascript.</p>