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

Function execPostParser

src/utils/transformation.js:118–122  ·  view source on GitHub ↗
(html, links)

Source from the content-addressed store, hash-verified

116 * @returns {string} Transformed HTML string
117 */
118export const execPostParser = (html, links) => {
119 const doc = new DOMParser().parseFromString(html, 'text/html')
120 findTransformations(links).map(tfm => tfm.post).filter(fn => isFunction(fn)).forEach(fn => fn(doc))
121 return Array.from(doc.childNodes).map(it => it.outerHTML).join('')
122}

Callers 2

parseFromHtml.jsFile · 0.90

Calls 1

findTransformationsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…