You can try setting the contenteditable attribute to false it will keep the text and allow you to readonly.
<div contenteditable="false"> content goes here </div>