is there any function which can help escape all meta-characters contained in jquery‘s selector？
<p>Straight from jquery docs： </p>

<p>If you wish to use any of the meta-characters (such as <code>!"#$%&amp;'()*+,./:;&lt;=&gt;?@[\]^&amp;a{|}~)</code> as a literal part of a name, you must escape the character with two backslashes: \. For example, if you have an element with <code>id="foo.bar"</code>, you can use the selector <code>$("#foo\\.bar")</code>.</p>

<p>I want to know is there any function can help me to escape those meta-charcters？</p>
