how to change format 1 to format 2 
<ol>
<li>when i store my kml string to databse,i be this :</li>
</ol>

<p><img src="http://omploader.org/vNDR3Mg" alt="alt text"></p>

<p>2.</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;kml xmlns="http://www.opengis.net/kml/2.2"&gt;
  &lt;Placemark&gt;
    &lt;name&gt;Simple placemark&lt;/name&gt;
    &lt;description&gt;Attached to the ground. Intelligently places itself 
       at the height of the underlying terrain.&lt;/description&gt;
    &lt;Point&gt;
      &lt;coordinates&gt;-122.0822035425683,37.42228990140251,0&lt;/coordinates&gt;
    &lt;/Point&gt;
  &lt;/Placemark&gt;
&lt;/kml&gt;
</code></pre>

<p>so how to change it using jquery or javascript</p>
