MCPcopy Create free account
hub / github.com/angular/components / getHtmlHeadTagElement

Function getHtmlHeadTagElement

src/cdk/schematics/utils/html-manipulation.ts:45–47  ·  view source on GitHub ↗
(htmlContent: string)

Source from the content-addressed store, hash-verified

43
44/** Parses the given HTML file and returns the head element if available. */
45export function getHtmlHeadTagElement(htmlContent: string): Element | null {
46 return getElementByTagName('head', htmlContent);
47}
48
49/** Adds a class to the body of the document. */
50export function addBodyClass(host: Tree, htmlFilePath: string, className: string): void {

Callers 1

appendHtmlElementToHeadFunction · 0.85

Calls 1

getElementByTagNameFunction · 0.85

Tested by

no test coverage detected