MCPcopy Index your code
hub / github.com/angular/angular / getInertBodyHelper

Function getInertBodyHelper

packages/core/src/sanitization/inert_body.ts:18–21  ·  view source on GitHub ↗
(defaultDoc: Document)

Source from the content-addressed store, hash-verified

16 * Fallback: InertDocument strategy
17 */
18export function getInertBodyHelper(defaultDoc: Document): InertBodyHelper {
19 const inertDocumentHelper = new InertDocumentHelper(defaultDoc);
20 return isDOMParserAvailable() ? new DOMParserHelper(inertDocumentHelper) : inertDocumentHelper;
21}
22
23export interface InertBodyHelper {
24 /**

Callers 2

_sanitizeHtmlFunction · 0.90
parseIcuCaseFunction · 0.90

Calls 1

isDOMParserAvailableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…