title: Escape Apostrophe in Selenium
body: <p>I am trying to escape an apostrophe in Selenium. Sample text below</p>
  
  <pre><code>&lt;a title="My Day's Schedule"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I am trying to search for this element using <code>//a[contains(@title , 'My Day's Schedule')]</code> , but this would not work since the apostrophe is not escaped. 
  Tried various methods such as using the double quote to escape the apostrophe / using the java escape character ; but the XPath does not recognize the element </p>
  
  <p>Any pointers ?</p>
  
  <p>Thanks</p>