MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / escapeId

Function escapeId

static/js/bootstrap.js:123–128  ·  view source on GitHub ↗
(selector)

Source from the content-addressed store, hash-verified

121 }
122
123 function escapeId(selector) {
124 // We escape IDs in case of special selectors (selector = '#myId:something')
125 // $.escapeSelector does not exist in jQuery < 3
126 selector = typeof $$$1.escapeSelector === 'function' ? $$$1.escapeSelector(selector).substr(1) : selector.replace(/(:|\.|\[|\]|,|=|@)/g, '\\$1');
127 return selector;
128 }
129 /**
130 * --------------------------------------------------------------------------
131 * Public Util Api

Callers 1

bootstrap.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected