title: Remove all except inside tag
body: <p>How to remove all from page except text inside <code>&lt;p&gt;</code> tag?</p>
  
  <p>Page:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  This is text.
    &lt;div class="text"&gt;This is text in 'div' tag&lt;/div&gt;
    &lt;p&gt;This is text in 'p' tag&lt;/p&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Expected result:</p>
  
  <blockquote>
    <p>This is text in 'p' tag</p>
  </blockquote>
  
  <p>Greetings.</p>