MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / parseHtml

Function parseHtml

packages/challenge-builder/src/transformers.test.js:10–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8import { embedFilesInHtml, embedScript, getTransformers } from './transformers';
9
10const parseHtml = html => new DOMParser().parseFromString(html, 'text/html');
11const defaultLoopProtectOptions = {
12 preview: false,
13 disableLoopProtectTests: false,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected