I'm having issues with escaping characters (namely period) found in variables when using selectors in jQuery. I was going to type this all out, but it was just easier taking a screenshot of my console window in Chrome.
It looks like the variables and the clear text versions match up. I expect
After the string is parsed from the source code into an internal string value, the next thing that'll pay attention to its contents (in this case) is the CSS selector evaluator (either Sizzle or the native
querySelector code; not sure which in the case of strings with escapes like this). That code only needs one backslash to quote the
. in order that it not be interpreted as introducing a class name match.
escName = "jeffrey\\.lamb"; is all you need in this case.