jQuery selector escaping

jQuery selectors are powerful and simple to use, until you have attribute values (including ids and classes) that have funny characters. I wrote a plugin adds a simple function $.escape that will escape any special characters. For example if I have a string s that contains an id but I’m not sure that all of …