MCPcopy Index your code
hub / github.com/angular/angular / parseHtml

Function parseHtml

packages/compiler/test/i18n/extractor_merger_spec.ts:647–654  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

645});
646
647function parseHtml(html: string): html.Node[] {
648 const htmlParser = new HtmlParser();
649 const parseResult = htmlParser.parse(html, 'extractor spec', {tokenizeExpansionForms: true});
650 if (parseResult.errors.length > 1) {
651 throw new Error(`unexpected parse errors: ${parseResult.errors.join('\n')}`);
652 }
653 return parseResult.rootNodes;
654}
655
656function fakeTranslate(
657 content: string,

Callers 5

fakeTranslateFunction · 0.70
fakeNoTranslateFunction · 0.70
extractFunction · 0.70
extractErrorsFunction · 0.70

Calls 2

parseMethod · 0.95
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…