strip p tags if it's surrounding an image link?
<p>The platform I'm building a website on adds <code>p</code> tags around image links in wysiwyg mode and this messes up the layout. Is there anyway I can use jQuery to strip the <code>p</code> tags if it's surrounding an image?</p>

<pre><code>&lt;div class="post"&gt;
    &lt;p&gt;&lt;a href="link"&gt;&lt;img src="image"&gt;&lt;/a&gt;&lt;/p&gt;
    &lt;p&gt;&lt;a href="link"&gt;&lt;img src="image"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
</code></pre>
