title: I want to remove certain parent- and child-divs in all my wordpress posts with php or some other script
body: <p>Is there a quick way, via script maybe, to remove a certain pair of div's out of all my wordpress posts? For example:</p>
  
  <p>I want to go from this:</p>
  
  <pre><code>&lt;div class="single_textimage"&gt;
  &lt;div class="youtube_play"&gt;&lt;iframe src="-,-"&gt;&lt;/iframe&gt;&lt;/div&gt;
  &lt;div class="single_textimage_text"&gt;Some text.&lt;/div&gt;
  &lt;div class="single_textimage_copyright"&gt;Some text.&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>To this:</p>
  
  <pre><code>&lt;div class="youtube_play"&gt;&lt;iframe src="-,-"&gt;&lt;/iframe&gt;&lt;/div&gt;
  </code></pre>
  
  <blockquote>
    <p>AND </p>
  </blockquote>
  
  <p>From this:</p>
  
  <pre><code> &lt;div class="single_textimage"&gt;
  &lt;img class="aligncenter size-full wp-image-1700" src="-,-" /&gt;
  &lt;div class="single_textimage_text"&gt;Some text.&lt;/div&gt;
  &lt;div class="single_textimage_copyright"&gt;Some text.&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>To this:</p>
  
  <pre><code>&lt;img class="aligncenter size-full wp-image-1700" src="-,-" /&gt;
  </code></pre>
  
  <p>So I want the divs: single_textimage, single_textimage_text and single_textimage_copyright to go.</p>
  
  <p>I hope there is an easy script, or difficult for that matter. Via "php", "mysql" or "jquery" for example, that I can put in test.php in the root or something...</p>
  
  <p>I hope I supplied you with enough information. If I haven't made myself clear enough, please reply. :)</p>