MCPcopy Create free account
hub / github.com/arfct/itty-bitty / sanitize

Function sanitize

docs/render/parse.js:162–162  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

160 const microdata = [];
161
162 let sanitize = (input) => input?.replace(/\s/gi, ' ').trim();
163
164 function addValue(obj, key, value) {
165 if (Array.isArray(obj[key])) {

Callers 1

traverseItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected