MCPcopy
hub / github.com/angular/angular / getAppContents

Function getAppContents

packages/platform-server/test/dom_utils.ts:64–67  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

62 * scripts) rendered on the server.
63 */
64export function getAppContents(html: string): string {
65 const result = stripUtilAttributes(html, true).match(/<body>(.*?)<\/body>/s);
66 return result ? result[1] : html;
67}
68
69/**
70 * Converts a static HTML to a DOM structure.

Calls 2

stripUtilAttributesFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…