changing <span> to <p> through DOM
<p>I am receiving a piece of HTML code from a plugin and I want to change all instances of <code>&lt;span class="post-stats"&gt;</code> to <code>&lt;p class="post-stats"&gt;</code> in the code. What is the best way to achieve this?</p>
