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

Function getElementHtml

packages/core/test/acceptance/content_spec.ts:37–41  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

35 });
36 });
37 function getElementHtml(element: HTMLElement) {
38 return element.innerHTML
39 .replace(/<!--(\W|\w)*?-->/g, '')
40 .replace(/\sng-reflect-\S*="[^"]*"/g, '');
41 }
42
43 it('should project content', () => {
44 @Component({

Callers 1

content_spec.tsFile · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected