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

Function sanitizeHtml

packages/core/test/sanitization/html_sanitizer_spec.ts:13–15  ·  view source on GitHub ↗
(defaultDoc: any, unsafeHtmlInput: string)

Source from the content-addressed store, hash-verified

11import {isBrowser} from '@angular/private/testing';
12
13function sanitizeHtml(defaultDoc: any, unsafeHtmlInput: string): string {
14 return _sanitizeHtml(defaultDoc, unsafeHtmlInput).toString();
15}
16
17describe('HTML sanitizer', () => {
18 let defaultDoc: any;

Callers 3

nextSiblingFunction · 0.85
firstChildFunction · 0.85

Calls 2

_sanitizeHtmlFunction · 0.90
toStringMethod · 0.65

Tested by

no test coverage detected