I know I am going to forget this. So I am going to write a post about this and I am hoping this process will help me remember this information.
Recently I needed to add some content to a wiki, but I didn’t want to pre-parse the data to escape any wiki or html formatting. What I wanted was the pre tag. But the pre tag will not line break the content to fit on the page. I need a pre tag with line breaks. Here is the standards based way to do this:
<pre style=”white-space: pre-wrap;”>