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

Function getTemplateContent

packages/core/src/sanitization/html_sanitizer.ts:353–357  ·  view source on GitHub ↗
(el: Node)

Source from the content-addressed store, hash-verified

351}
352
353export function getTemplateContent(el: Node): Node | null {
354 return 'content' in (el as any) /** Microsoft/TypeScript#21517 */ && isTemplateElement(el)
355 ? el.content
356 : null;
357}
358function isTemplateElement(el: Node): el is HTMLTemplateElement {
359 return el.nodeType === Node.ELEMENT_NODE && el.nodeName === 'TEMPLATE';
360}

Callers 3

parseIcuCaseFunction · 0.90
_sanitizeHtmlFunction · 0.85
clearInertBodyElementFunction · 0.85

Calls 1

isTemplateElementFunction · 0.85

Tested by

no test coverage detected