but sadly doesn't work. I forgot about the `<br>` needed because of bug 414223, so can't use this for `dom.message`.
Anyway with the change for `<textarea>` I can revert the use of this function and go back to normal.