title: XUL - textbox problem
body: <p>I am writing a Firefox extension. When a user highlights and right clicks a selected text on a webpage, the extension captures the text and displays it in a textbox (xul window). The textbox shows the correct formating (like the line breaks, spaces, * for li tags.). But the problem happens when i try to store the textbox value in a variable. The line breaks are gone.</p>
  
  <p>var selText = document.getElementById("txtboxSelectedText").value; //</p>
  
  <p>Can anybody help?</p>
  
  <p>Thanks a lot.</p>