title: Change tag using javascript
body: <p>I want to know how can I change a tag with pure javascript like that</p>
  
  <pre><code>    &lt;span&gt;some text&lt;/span&gt;
  </code></pre>
  
  <p>I want to change it to that</p>
  
  <pre><code>  &lt;div&gt;some text&lt;/div&gt;
  </code></pre>
  
  <p>I have no idea how to do it.</p>