title: jQuery selector value escaping
body: <p>I have a dropdown list that contains a series of options:</p>
  
  <pre><code>&lt;select id=SomeDropdown&gt;
    &lt;option value="a'b]&amp;lt;p&gt;"&gt;a'b]&amp;lt;p&gt;&lt;/option&gt;
    &lt;option value="easy"&gt;easy&lt;/option&gt;
  &lt;select&gt;
  </code></pre>
  
  <p>Notice that the option value/text contains some nasty stuff:</p>
  
  <ul>
  <li>single quotes </li>
  <li>closing square bracket</li>
  <li>escaped html</li>
  </ul>
  
  <p>I need to remove the a'b]&lt;p> option but I'm having no luck writing the selector. Neither:</p>
  
  <pre><code>$("#SomeDropdown &gt;option[value='a''b]&amp;lt;p&gt;']");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$("#SomeDropdown &gt;option[value='a\'b]&amp;lt;p&gt;']");
  </code></pre>
  
  <p>are returning the option.</p>
  
  <p>What is the correct way to escape values when using the "value=" selector?</p>