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

Function trustUrl

src/material/icon/icon.spec.ts:1354–1356  ·  view source on GitHub ↗

Marks an SVG icon url as explicitly trusted.

(iconUrl: string)

Source from the content-addressed store, hash-verified

1352
1353 /** Marks an SVG icon url as explicitly trusted. */
1354 function trustUrl(iconUrl: string): SafeResourceUrl {
1355 return sanitizer.bypassSecurityTrustResourceUrl(iconUrl);
1356 }
1357
1358 /** Marks an SVG icon string as explicitly trusted. */
1359 function trustHtml(iconHtml: string): SafeHtml {

Callers 1

icon.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected