Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ trustedHTMLFromString
Function
trustedHTMLFromString
src/cdk/private/trusted-types.ts:75–77 ·
view source on GitHub ↗
(html: string)
Source
from the content-addressed store, hash-verified
73
* element.innerHTML.
74
*/
75
export
function
trustedHTMLFromString(html: string): TrustedHTML {
76
return
getPolicy()?.createHTML(html) || (html as unknown as TrustedHTML);
77
}
Callers
6
addSvgIconLiteralInNamespace
Method · 0.90
addSvgIconSetLiteralInNamespace
Method · 0.90
_extractSvgIconFromSet
Method · 0.90
_toSvgElement
Method · 0.90
_fetchIcon
Method · 0.90
_setInnerHtml
Function · 0.90
Calls
2
getPolicy
Function · 0.85
createHTML
Method · 0.80
Tested by
no test coverage detected