someText=loadedText.data; someText=someText.replace(/[\n\r]{2}/g,"\r"); someObject.textComp.htmlText=someText;