Avoid innerText for better newline behavior

Fixes #1080.