MCPcopy Create free account
hub / github.com/Lobos/react-ui / escapeTextContentForBrowser

Function escapeTextContentForBrowser

docs/lib/react.js:16404–16406  ·  view source on GitHub ↗

* Escapes text to prevent scripting attacks. * * @param {*} text Text value to escape. * @return {string} An escaped string.

(text)

Source from the content-addressed store, hash-verified

16402 * @return {string} An escaped string.
16403 */
16404function escapeTextContentForBrowser(text) {
16405 return ('' + text).replace(ESCAPE_REGEX, escaper);
16406}
16407
16408module.exports = escapeTextContentForBrowser;
16409},{}],118:[function(_dereq_,module,exports){

Callers 2

react.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…