title: Change the tag but keep the attributes and content -- jQuery/Javascript
body: <pre><code>&lt;a href=&quot;page.html&quot; class=&quot;class1 class2&quot; id=&quot;thisid&quot;&gt;Text&lt;/a&gt;
  </code></pre>
  <p>changed to</p>
  <pre><code>&lt;p href=&quot;page.html&quot; class=&quot;class1 class2&quot; id=&quot;thisid&quot;&gt;Text&lt;/p&gt;
  </code></pre>
  <p>I'm familiar with jQuery's <code>replaceWith</code> but that doesn't keep attributes/content as far as I know.</p>
  <p>Note: Why would p have a <code>href</code>?  Cuz I need to change <code>p</code> back to <code>a</code> on another event.</p>