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

Function parseDocument

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

Source from the content-addressed store, hash-verified

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

Callers 2

_documentFunction · 0.90
createHtmlDocumentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected