title: Can I change an HTML element's type?
body: <p>Can I replace one HTML element with another?</p>
  <p>I want to change an <code>&lt;a&gt;</code> to a <code>&lt;div&gt;</code>, but I don't want to make the content blank.</p>
  <p>From:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;a data-text=&quot;text&quot;&gt;content&lt;/a&gt;
  </code></pre>
  <p>to:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;div data-text=&quot;text&quot;&gt;content&lt;/div&gt;
  </code></pre>
  <p>Any idea?</p>