MCPcopy Index your code
hub / github.com/angular/angular / getTemplateContent

Function getTemplateContent

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

Source from the content-addressed store, hash-verified

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

Callers 2

parseIcuCaseFunction · 0.90
_sanitizeHtmlFunction · 0.85

Calls 1

isTemplateElementFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…