title: Strip just <p> tags in PHP
body: <p>I have a set of <code>&lt;p&gt;&lt;/p&gt;</code> tags wrapping a set of data, that data includes other tags such as <code>&lt;script&gt;&lt;/script&gt;</code> however that content could contain any number of different tags. </p>
  
  <p>I just need to remove any paragraph tags from the content</p>
  
  <p>Example below</p>
  
  <pre><code>$text = "&lt;p&gt;&lt;script&gt;example text inside script.&lt;script&gt;&lt;/p&gt;";
  </code></pre>
  
  <p>I see the strip_tags function but I believe that will remove all the tags.</p>
  
  <p>How would I go about just removing the paragraph?</p>
  
  <p>Thanks.</p>