Avoid innerText for better newline behavior

Fixes #1080.
Merge pull request #1081 from spicyj/textcontent

Avoid innerText for better newline behavior