title: Replace <div> tag with <p> tag using php
body: <pre><code>&lt;div style = "text-align:left;" class="ref"&gt; Text &lt;/div&gt;
  </code></pre>
  
  <p>I want to replace <code>&lt;div&gt;</code> with <code>&lt;p&gt;</code> without losing attributes.</p>
  
  <p>Any help is appreciated.</p>