Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
154
function
quote(name) {
155
return
'"'
+ name.replace(/\\/g,
'\\\\'
).replace(/
"/g, '\\"
') + '
"'
156
}
157
158
function
oneLine(value) {
159
return
value.replace(/\\/g,
'\\\\'
).replace(/\r/g,
'\\r'
).replace(/\n/g,
'\\n'
)
Callers
1
lineFor
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected