MCPcopy
hub / github.com/angular/angular / parseHtml

Function parseHtml

packages/compiler/test/i18n/i18n_ast_spec.ts:94–101  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

92});
93
94export function parseHtml(html: string): Node[] {
95 const htmlParser = new HtmlParser();
96 const parseResult = htmlParser.parse(html, 'i18n_ast spec', {tokenizeExpansionForms: true});
97 if (parseResult.errors.length > 0) {
98 throw Error(`unexpected parse errors: ${parseResult.errors.join('\n')}`);
99 }
100 return parseResult.rootNodes;
101}

Callers 1

i18n_ast_spec.tsFile · 0.70

Calls 3

parseMethod · 0.95
ErrorInterface · 0.85
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…