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

Function escapeText

javascript/atoms/test/text_util.js:87–89  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

85 }
86
87 function escapeText(text) {
88 return text.replace(/\n/g, '\\n');//.replace(/\s/g, '\\s');
89 }
90}

Callers 1

assertTextIsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected