I am using jQuery to .load() the contents of a CSS file into a div. But when the contents of that file are loaded, all the line breaks, tabs, etc. are gone. Is there a way to do a load of a css file while still preserving the line breaks?
Thanks in advance!
Instead of a
<div>just use a<pre>element to preserve formatting, you can.load()into it the exact same way.The default behavior of HTML is to display without line-breaks, extra white-space, etc (except in a
<pre></pre>), from the HTML4 spec: