MCPcopy Create free account
hub / github.com/postlight/parser / transformAndClean

Function transformAndClean

src/extractors/root-extractor.js:90–95  ·  view source on GitHub ↗
($node)

Source from the content-addressed store, hash-verified

88 if (!matchingSelector) return null;
89
90 function transformAndClean($node) {
91 makeLinksAbsolute($node, $, opts.url || '');
92 cleanBySelectors($node, $, extractionOpts);
93 transformElements($node, $, extractionOpts);
94 return $node;
95 }
96
97 function selectHtml() {
98 // If the selector type requests html as its return type

Callers 2

selectHtmlFunction · 0.85
selectFunction · 0.85

Calls 3

makeLinksAbsoluteFunction · 0.90
cleanBySelectorsFunction · 0.85
transformElementsFunction · 0.85

Tested by

no test coverage detected