Use white-space: pre-wrap on element and strip all newlines.