Trim "Minify" inline css at runtime, expand it at edit time
<p>My custom WP theme has a text block in the theme options panel that allows the user to create and maintain a custom css block that is applied to the site template at runtime.</p>

<p>I would like to trim or "minify" this content before its stored in the database, but retain all the whitespace when its presented back to the user for editing.</p>

<p>Would this be possible?</p>

<p>For example, if the user has entered the following as their custom css code...</p>

<pre><code>.red {color:red;}

.green {color:green;}

.blue {color:blue;}
</code></pre>

<p>Then I would like to store it in the database as:</p>

<pre><code>.red{color:red;}.green{color:green;}.blue{color:blue;}
</code></pre>

<p>But still display it as it was input (ie, retain all the white space and line breaks) when the user is editing the content via my theme options panel.</p>
