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