title: How to replace DOM element in place using Javascript?
body: <p>I am looking to replace an element in the DOM. <br>
  For example, there is an <code>&lt;a&gt;</code> element that I want to replace with a <code>&lt;span&gt;</code> instead.</p>
  
  <p>How would I go and do that?</p>