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

Function trustHtml

src/material/icon/icon.spec.ts:1359–1361  ·  view source on GitHub ↗

Marks an SVG icon string as explicitly trusted.

(iconHtml: string)

Source from the content-addressed store, hash-verified

1357
1358 /** Marks an SVG icon string as explicitly trusted. */
1359 function trustHtml(iconHtml: string): SafeHtml {
1360 return sanitizer.bypassSecurityTrustHtml(iconHtml);
1361 }
1362});
1363
1364describe('MatIcon with default options', () => {

Callers 1

icon.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected