MCPcopy Create free account
hub / github.com/angular/angular / parseDocument

Function parseDocument

packages/platform-server/src/domino_adapter.ts:27–31  ·  view source on GitHub ↗
(html: string, url = '/')

Source from the content-addressed store, hash-verified

25 * Parses a document string to a Document object.
26 */
27export function parseDocument(html: string, url = '/') {
28 let window = domino.createWindow(html, url);
29 let doc = window.document;
30 return doc;
31}
32
33/**
34 * Serializes a document to string.

Callers 2

_documentFunction · 0.90
createHtmlDocumentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected