title: CSS selector exclude elements, hpricot
body: <p>I am trying to write a CSS selector that select everything except the script elements with hpricot, I can easily select the all the contents of the select-me div and then remove the script elements but I was wondering if its possible to use a selector which will exclude the script elements:</p>
  
  <pre><code>&lt;div class='select-me'&gt;
  &lt;p&gt;This is some text&lt;/p&gt;
  &lt;script&gt;
  javascript would be here
  &lt;/script&gt;
  &lt;p&gt;This is some text&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So in the end I get back:</p>
  
  <pre><code>&lt;div class='select-me'&gt;
  &lt;p&gt;This is some text&lt;/p&gt;
  &lt;p&gt;This is some text&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Cheers</p>