MCPcopy Index your code
hub / github.com/json-editor/json-editor / sanitize

Method sanitize

src/editors/string.js:365–368  ·  view source on GitHub ↗

* This is overridden in derivative editors

(value)

Source from the content-addressed store, hash-verified

363 * This is overridden in derivative editors
364 */
365 sanitize (value) {
366 value = this.purify(value)
367 return value
368 }
369
370 /**
371 * Re-calculates the value if needed

Callers 2

setValueMethod · 0.95
buildMethod · 0.95

Calls 1

purifyMethod · 0.80

Tested by

no test coverage detected