MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / quote

Function quote

javascript/selenium-webdriver/lib/accessibility_snapshot.js:154–156  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

152}
153
154function quote(name) {
155 return '"' + name.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '"'
156}
157
158function oneLine(value) {
159 return value.replace(/\\/g, '\\\\').replace(/\r/g, '\\r').replace(/\n/g, '\\n')

Callers 1

lineForFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected