title: Escape single quote in XPath with Nokogiri?
body: <p>I have an XPath query that looks like this, with both single and double quotes. How do I escape the apostrophe properly so that the query works? </p>
  
  <p>I tried: </p>
  
  <pre><code>"//li[text()='Frank&amp;apos;s car']"
  </code></pre>
  
  <p>but it doesn't seem to do it for me.</p>
  
  <p>Any ideas?</p>
  
  <pre><code> "//li[text()='Frank's car']"
  </code></pre>