MCPcopy
hub / github.com/extractus/article-extractor / stripMultispaces

Function stripMultispaces

src/utils/html.js:52–54  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

50 * @returns {string} Cleaned string
51 */
52const stripMultispaces = (str) => {
53 return str.replace(WS_REGEXP, ' ').trim()
54}
55
56/**
57 * Detect HTML character encoding from meta tags.

Callers 1

cleanifyFunction · 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…