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

Function oneLine

javascript/selenium-webdriver/lib/accessibility_snapshot.js:158–160  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

156}
157
158function oneLine(value) {
159 return value.replace(/\\/g, '\\\\').replace(/\r/g, '\\r').replace(/\n/g, '\\n')
160}
161
162/**
163 * Builds the node tree from the atom's wire form.

Callers 1

lineForFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected