MCPcopy
hub / github.com/processing/p5.js / escapeHelper

Function escapeHelper

src/io/files.js:1948–1955  ·  view source on GitHub ↗
(content)

Source from the content-addressed store, hash-verified

1946 // =======
1947
1948 function escapeHelper(content) {
1949 return content
1950 .replace(/&/g, '&')
1951 .replace(/</g, '&lt;')
1952 .replace(/>/g, '&gt;')
1953 .replace(/"/g, '&quot;')
1954 .replace(/'/g, '&#039;');
1955 }
1956
1957 /**
1958 * Writes the contents of a <a href="#/p5.Table">Table</a> object to a file. Defaults to a

Callers 1

filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected