title: Using XPath to retrieve elements inside a <script> tag
body: <p>I am trying to use XPath to get elements on a page which reside within a <code>&lt;script&gt;</code> tag. For example:</p>
  
  <pre><code>&lt;div id="foo"&gt;
      &lt;script&gt;
          &lt;p&gt;You can't get me.&lt;/p&gt;
      &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>If I try <code>response.xpath('//div[@id="foo"]//p')</code> or <code>response.xpath('//div[@id="foo"]/script/p')</code>, both return an empty array. </p>
  
  <p>How can I get the elements within the <code>&lt;script&gt;</code> tag using XPath?</p>